Fix recursive crash when home path cannot be created

This commit is contained in:
Thilo Schulz 2013-08-25 12:00:30 +02:00
parent 311376af8a
commit daf71ca502

View file

@ -522,8 +522,9 @@ void Sys_ErrorDialog( const char *error )
#endif #endif
// Make sure the write path for the crashlog exists... // Make sure the write path for the crashlog exists...
if( FS_CreatePath( ospath ) ) { if(!Sys_Mkdir(ospath))
Com_Printf( "ERROR: couldn't create path '%s' for crash log.\n", ospath ); {
Com_Printf("ERROR: couldn't create path '%s' for crash log.\n", ospath);
return; return;
} }