Module: wine Branch: master Commit: b9bc582fa682357f80151d820d7f13813cbaa616 URL: http://source.winehq.org/git/wine.git/?a=commit;h=b9bc582fa682357f80151d820d...
Author: Piotr Caban piotr@codeweavers.com Date: Tue Jul 24 11:46:34 2012 +0200
msvcp90: Fixed EOF detection in basic_filebuf_char_uflow function.
---
dlls/msvcp90/ios.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/msvcp90/ios.c b/dlls/msvcp90/ios.c index 9501c8a..13e5490 100644 --- a/dlls/msvcp90/ios.c +++ b/dlls/msvcp90/ios.c @@ -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; }