msvcrt [3/4]: Fix fread
Duane Clark
fpga at pacbell.net
Sat Jul 29 17:35:02 CDT 2006
On Windows, _read() does not necessarily return the requested number of
bytes in text mode, but fread does if the data is available. The
previous patch causes Wine to duplicate the Windows behavior of _read.
But Wine's fread expected _read to return the requested number of bytes,
if they were available.
So this patch fixes two things. One is that it needs to strip carriage
returns out of data from the buffer. And the second is that it might
need to call _read multiple times to completely file the requested buffer.
Changelog: Fix fread
-------------- next part --------------
A non-text attachment was scrubbed...
Name: file03.diff
Type: text/x-patch
Size: 2312 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20060729/de8aed9d/file03.bin
More information about the wine-patches
mailing list