Commit f91f24f6 authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

msvcrt: Fix _flsbuf behavior on streams with MSVCRT__IONBF flag.

parent 8715d89c
......@@ -3656,7 +3656,7 @@ int CDECL MSVCRT__flsbuf(int c, MSVCRT_FILE* file)
else
return MSVCRT_EOF;
}
if(file->_bufsiz) {
if(file->_bufsiz && !(file->_flag&MSVCRT__IONBF)) {
int res = 0;
if(file->_cnt <= 0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment