mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +00:00
[CRT]
* Update _filbuf(). CORE-8080 svn path=/trunk/; revision=63234
This commit is contained in:
parent
330869f298
commit
1adaa3117e
1 changed files with 5 additions and 0 deletions
|
@ -2263,6 +2263,11 @@ int CDECL _filbuf(FILE* file)
|
|||
unsigned char c;
|
||||
_lock_file(file);
|
||||
|
||||
if(file->_flag & _IOSTRG) {
|
||||
_unlock_file(file);
|
||||
return EOF;
|
||||
}
|
||||
|
||||
/* Allocate buffer if needed */
|
||||
if(file->_bufsiz == 0 && !(file->_flag & _IONBF))
|
||||
alloc_buffer(file);
|
||||
|
|
Loading…
Reference in a new issue