test for error when writing Preferences.ini

This commit is contained in:
Chris Danford
2006-01-20 21:40:15 +00:00
parent 9c540ac8fe
commit 3992801160
3 changed files with 13 additions and 2 deletions
+3 -1
View File
@@ -80,7 +80,9 @@ bool IniFile::WriteFile( const RString &sPath ) const
return false;
}
return IniFile::WriteFile( f );
bool bSuccess = IniFile::WriteFile( f );
f.Close();
return bSuccess && !f.GetError().empty();
}
bool IniFile::WriteFile( RageFileBasic &f ) const