Bug 11763 - Bug fix and small improvement of function MSVCRT_fputc in dlls/msvcrt/file.c.

Pawel Ludwiczak pawel.ludwiczak at gmail.com
Fri Jun 13 06:47:57 CDT 2008


Bug fix:
In Function MSVCRT_fputc from dlls/msvcrt/file.c, if there are no errors, the
same character that has been written should be returned, but the value should
be converted to an 'unsigned char' before will be returned. Otherwise e.g. if
input character = 0xffffffff, the returned value will not equal to 0xff, we
will
get EOF instead.

Small improvement:
In my opinion, the function MSVCRT_fputc flushes a buffer when get '\n' and it
is OK, but when the file is opened in binary mode this behaviour is unnecessary
and decrease efficiency.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.winehq.org/pipermail/wine-patches/attachments/20080613/7c0633a8/attachment-0001.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bug11763.patch
Type: application/octet-stream
Size: 511 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20080613/7c0633a8/attachment-0001.obj 


More information about the wine-patches mailing list