From: Amine Khaldi Date: Sun, 11 May 2014 17:45:26 +0000 (+0000) Subject: [CRT] X-Git-Tag: backups/0.3.17@66124~1313 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=1adaa3117e52d0d5627ff5061600da55bfd157a8 [CRT] * Update _filbuf(). CORE-8080 svn path=/trunk/; revision=63234 --- diff --git a/reactos/lib/sdk/crt/stdio/file.c b/reactos/lib/sdk/crt/stdio/file.c index f2b8dc2702b..70673ba272f 100644 --- a/reactos/lib/sdk/crt/stdio/file.c +++ b/reactos/lib/sdk/crt/stdio/file.c @@ -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);