Fixed #6632
This commit is contained in:
parent
42083c5979
commit
ad93ff3f0d
@ -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,
|
||||||
|
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user