Module: wine Branch: master Commit: b1d9d16c7ea148770075936737ff436dc520f245 URL: http://source.winehq.org/git/wine.git/?a=commit;h=b1d9d16c7ea148770075936737...
Author: Daniel Lehman dlehman@esri.com Date: Thu Sep 27 12:19:39 2012 -0700
msvcp90: Flip fclose result check in filebuf<>::close.
---
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 e497304..00a1b68 100644 --- a/dlls/msvcp90/ios.c +++ b/dlls/msvcp90/ios.c @@ -2429,7 +2429,7 @@ basic_filebuf_char* __thiscall basic_filebuf_char_close(basic_filebuf_char *this /* TODO: handle exceptions */ if(!basic_filebuf_char__Endwrite(this)) ret = NULL; - if(!fclose(this->file)) + if(fclose(this->file)) ret = NULL;
basic_filebuf_char__Init(this, NULL, INITFL_close); @@ -3000,7 +3000,7 @@ basic_filebuf_wchar* __thiscall basic_filebuf_wchar_close(basic_filebuf_wchar *t /* TODO: handle exceptions */ if(!basic_filebuf_wchar__Endwrite(this)) ret = NULL; - if(!fclose(this->file)) + if(fclose(this->file)) ret = NULL;
basic_filebuf_wchar__Init(this, NULL, INITFL_close);