msvcrt: fix ungetc behavior

Paul Rupe prupe at
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.

  Paul Rupe <prupe at>
  make ungetc(EOF) a no-op

Paul Rupe   <prupe at>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: msvcrt-file-20050625.dff
Type: text/x-diff
Size: 2984 bytes
Desc: not available
Url :

More information about the wine-patches mailing list