msvcp: Flip fclose result check in filebuf<>::close.

This commit is contained in:
Daniel Lehman 2012-10-08 12:14:24 -07:00 committed by Alexandre Julliard
parent c6e0daa200
commit c152c54084
3 changed files with 6 additions and 6 deletions

View File

@ -1993,7 +1993,7 @@ static basic_filebuf_char* 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);
@ -2482,7 +2482,7 @@ static basic_filebuf_wchar* basic_filebuf_wchar_close(basic_filebuf_wchar *this)
/* 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);

View File

@ -2331,7 +2331,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);
@ -2901,7 +2901,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);

View File

@ -2414,7 +2414,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);
@ -2974,7 +2974,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);