msvcp90: Fixed EOF detection in basic_filebuf_char_uflow function.

This commit is contained in:
Piotr Caban 2012-07-24 11:46:34 +02:00 committed by Alexandre Julliard
parent c7e3bb5a93
commit b9bc582fa6
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}