mirror of
https://github.com/reactos/reactos.git
synced 2024-09-12 13:54:41 +00:00
Fixed error handling in _filebuf().
svn path=/trunk/; revision=2804
This commit is contained in:
parent
3005268105
commit
2cda2c03b3
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue