Fixed bug that wrote incomplete wxExpr files (missing fclose)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3398 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart 1999-08-17 10:27:04 +00:00
parent deb2fec01e
commit 469eb89edc

View File

@ -1031,7 +1031,9 @@ bool wxExprDatabase::Write(const wxString& fileName)
if (!stream)
return FALSE;
return Write(stream);
bool success = Write(stream);
fclose(stream);
return success;
}
bool wxExprDatabase::Write(FILE *stream)