fixed crashes when ini, log, and cache files are read-only
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user