This commit is contained in:
akallabeth 2020-12-03 07:22:17 +01:00 committed by akallabeth
parent 42083c5979
commit ad93ff3f0d
2 changed files with 1 additions and 2 deletions

View File

@ -361,7 +361,6 @@ BOOL ReadFileEx(HANDLE hFile, LPVOID lpBuffer, DWORD nNumberOfBytesToRead,
WLog_ERR(TAG, "ReadFileEx operation not implemented"); WLog_ERR(TAG, "ReadFileEx operation not implemented");
return FALSE; return FALSE;
return TRUE;
} }
BOOL ReadFileScatter(HANDLE hFile, FILE_SEGMENT_ELEMENT aSegmentArray[], DWORD nNumberOfBytesToRead, BOOL ReadFileScatter(HANDLE hFile, FILE_SEGMENT_ELEMENT aSegmentArray[], DWORD nNumberOfBytesToRead,

View File

@ -163,7 +163,7 @@ int winpr_bitmap_write(const char* filename, const BYTE* data, int width, int he
bmp_header = winpr_bitmap_construct_header(width, height, bpp); bmp_header = winpr_bitmap_construct_header(width, height, bpp);
if (!bmp_header) if (!bmp_header)
return -1; goto fail;
if (fwrite(bmp_header, WINPR_IMAGE_BMP_HEADER_LEN, 1, fp) != 1 || if (fwrite(bmp_header, WINPR_IMAGE_BMP_HEADER_LEN, 1, fp) != 1 ||
fwrite((void*)data, img_size, 1, fp) != 1) fwrite((void*)data, img_size, 1, fp) != 1)