fixed crashes when ini, log, and cache files are read-only

This commit is contained in:
Chris Danford
2003-01-11 19:11:55 +00:00
parent 0a92622aac
commit 88840d9020
3 changed files with 13 additions and 3 deletions
+4
View File
@@ -92,6 +92,10 @@ bool IniFile::ReadFile()
void IniFile::WriteFile()
{
FILE* fp = fopen( path, "w" );
if( fp == NULL )
return;
for (keymap::const_iterator k = keys.begin(); k != keys.end(); ++k)
{
if (k->second.empty())