msvcp90: Flip fclose result check in filebuf<>::close.
This commit is contained in:
parent
d67923575a
commit
b1d9d16c7e
|
@ -2429,7 +2429,7 @@ basic_filebuf_char* __thiscall basic_filebuf_char_close(basic_filebuf_char *this
|
||||||
/* TODO: handle exceptions */
|
/* TODO: handle exceptions */
|
||||||
if(!basic_filebuf_char__Endwrite(this))
|
if(!basic_filebuf_char__Endwrite(this))
|
||||||
ret = NULL;
|
ret = NULL;
|
||||||
if(!fclose(this->file))
|
if(fclose(this->file))
|
||||||
ret = NULL;
|
ret = NULL;
|
||||||
|
|
||||||
basic_filebuf_char__Init(this, NULL, INITFL_close);
|
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 */
|
/* TODO: handle exceptions */
|
||||||
if(!basic_filebuf_wchar__Endwrite(this))
|
if(!basic_filebuf_wchar__Endwrite(this))
|
||||||
ret = NULL;
|
ret = NULL;
|
||||||
if(!fclose(this->file))
|
if(fclose(this->file))
|
||||||
ret = NULL;
|
ret = NULL;
|
||||||
|
|
||||||
basic_filebuf_wchar__Init(this, NULL, INITFL_close);
|
basic_filebuf_wchar__Init(this, NULL, INITFL_close);
|
||||||
|
|
Loading…
Reference in New Issue