msvcrt: Support _IOSTRG flag in _filbuf function.

This commit is contained in:
Piotr Caban 2014-01-28 10:08:17 +01:00 committed by Alexandre Julliard
parent dd89dd1932
commit e16059113c
1 changed files with 5 additions and 0 deletions

View File

@ -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);