mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
Fixed error handling in _filebuf().
svn path=/trunk/; revision=2804
This commit is contained in:
parent
3005268105
commit
2cda2c03b3
1 changed files with 2 additions and 2 deletions
|
@ -86,8 +86,8 @@ _filbuf(FILE *f)
|
||||||
|
|
||||||
|
|
||||||
//check for error
|
//check for error
|
||||||
if (--f->_cnt < 0) {
|
if (f->_cnt <= 0) {
|
||||||
if (f->_cnt == -1) {
|
if (f->_cnt == 0) {
|
||||||
f->_flag |= _IOEOF;
|
f->_flag |= _IOEOF;
|
||||||
} else
|
} else
|
||||||
f->_flag |= _IOERR;
|
f->_flag |= _IOERR;
|
||||||
|
|
Loading…
Reference in a new issue