<pre class="bz_comment_text">Bug fix:<br>In Function MSVCRT_fputc from dlls/msvcrt/file.c, if there are no errors, the<br>same character that has been written should be returned, but the value should<br>be converted to an &#39;unsigned char&#39; before will be returned. Otherwise e.g. if<br>
input character = 0xffffffff, the returned value will not equal to 0xff, we<br>will <br>get EOF instead.<br><br>Small improvement:<br>In my opinion, the function MSVCRT_fputc flushes a buffer when get &#39;\n&#39; and it<br>
is OK, but when the file is opened in binary mode this behaviour is unnecessary<br>and decrease efficiency.</pre>