msvcrt: fix ungetc behavior

Paul Rupe prupe at myrealbox.com
Sat Jun 25 11:02:07 CDT 2005


MSDN says that ungetc is ignored when called with EOF.  Wine was incorrectly 
pushing a -1 back into the data stream.  This patch ignores EOF and adds a 
test case.  Proxomitron now works with builtin msvcrt.

Changelog:
  Paul Rupe <prupe at myrealbox.com>
  make ungetc(EOF) a no-op


-- 
Paul Rupe   <prupe at myrealbox.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: msvcrt-file-20050625.dff
Type: text/x-diff
Size: 2984 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20050625/2eb68c66/msvcrt-file-20050625.bin


More information about the wine-patches mailing list