msvcrt [2/4] take 2: Fix _read and fgetc

Duane Clark fpga at pacbell.net
Sun Jul 30 14:52:54 CDT 2006


Probably the compiler recognized that the while(all_read < count) loop 
would always execute only once. This patch differs from the previous 
version in explicitly removing the loop, and also eliminates a redundant 
test in fgetc.

The main change. Most of _read() is converted into an internal read_i()
function that does not strip carriage returns. MSVCRT__fgetc() and
MSVCRT__filbuf() are fixed to use the internal read_i, and
MSVCRT__fgetc() does it's own text stripping.

Changelog: Fix _read and fgetc


-------------- next part --------------
A non-text attachment was scrubbed...
Name: file05.diff
Type: text/x-patch
Size: 8204 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20060730/fca3f2c2/file05.bin


More information about the wine-patches mailing list