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

msvcrt: Support _IOSTRG flag in _filbuf function.

parent dd89dd19
......@@ -3280,6 +3280,11 @@ int CDECL MSVCRT__filbuf(MSVCRT_FILE* file)
unsigned char c;
MSVCRT__lock_file(file);
if(file->_flag & MSVCRT__IOSTRG) {
MSVCRT__unlock_file(file);
return MSVCRT_EOF;
}
/* Allocate buffer if needed */
if(file->_bufsiz == 0 && !(file->_flag & MSVCRT__IONBF))
msvcrt_alloc_buffer(file);
......
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