msvcrt: fread: exhaust buffered data before using unbuffered data in ascii mode

Dan Kegel dank at kegel.com
Mon Dec 15 23:47:56 CST 2008


Fixes http://bugs.winehq.org/show_bug.cgi?id=16511
With testcase.

This should never be worse than the existing code,
and for some inputs it's better.
It would be better still if remove_cr() was stateful, but
I haven't hit a situation in the real world yet that needs that.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fread.patch
Type: text/x-diff
Size: 2797 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20081215/185e1658/attachment.patch 


More information about the wine-patches mailing list