msvcp: Flip fclose result check in filebuf<>::close.
This commit is contained in:
parent
c6e0daa200
commit
c152c54084
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue