Commit 19a08820 authored by Alexandre Julliard's avatar Alexandre Julliard

msvcrt: Fix fflush() of files opened for read.

Some apps, for no particular reason, call fflush() on files opened for read. This keeps them from tripping over their shoelaces.
parent 56de92d7
......@@ -588,11 +588,11 @@ int MSVCRT_fflush(MSVCRT_FILE* file)
{
if(!file) {
_flushall();
return 0;
} else {
} else if(file->_flag & MSVCRT__IOWRT) {
int res=msvcrt_flush_buffer(file);
return res;
}
return 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