diff --git a/reactos/lib/msvcrt/stdio/filbuf.c b/reactos/lib/msvcrt/stdio/filbuf.c index b98f48b0749..5033a60a26c 100644 --- a/reactos/lib/msvcrt/stdio/filbuf.c +++ b/reactos/lib/msvcrt/stdio/filbuf.c @@ -86,8 +86,8 @@ _filbuf(FILE *f) //check for error - if (--f->_cnt < 0) { - if (f->_cnt == -1) { + if (f->_cnt <= 0) { + if (f->_cnt == 0) { f->_flag |= _IOEOF; } else f->_flag |= _IOERR;