Re: [2/3] msvcrt: Clear _cnt on buffer flush.
18 Jun
2014
18 Jun
'14
1:58 a.m.
On 06/18/14 02:03, Grazvydas Ignotas wrote:
@@ -3662,6 +3662,7 @@ int CDECL MSVCRT__flsbuf(int c, MSVCRT_FILE* file) if(file->_cnt <= 0) res = msvcrt_flush_buffer(file); if(!res) { + file->_cnt=file->_bufsiz; *file->_ptr++ = c; file->_cnt--; }
file->_cnt value should only be set if msvcrt_flush_buffer was called. Cheers, Piotr
4192
Age (days ago)
4192
Last active (days ago)
0 comments
1 participants
participants (1)
-
Piotr Caban