Commit b9bc582f authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

msvcp90: Fixed EOF detection in basic_filebuf_char_uflow function.

parent c7e3bb5a
......@@ -2466,7 +2466,7 @@ int __thiscall basic_filebuf_char_uflow(basic_filebuf_char *this)
return *basic_streambuf_char__Gninc(&this->base);
c = fgetc(this->file);
if(!this->cvt || !c)
if(!this->cvt || c==EOF)
return c;
buf_next = buf;
......@@ -2479,7 +2479,7 @@ int __thiscall basic_filebuf_char_uflow(basic_filebuf_char *this)
case CODECVT_ok:
if(to_next == &ch) {
c = fgetc(this->file);
if(!c)
if(c == EOF)
return EOF;
continue;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment