mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2024-11-23 04:12:39 +00:00
Fix recursive crash when home path cannot be created
This commit is contained in:
parent
311376af8a
commit
daf71ca502
1 changed files with 3 additions and 2 deletions
|
@ -522,8 +522,9 @@ void Sys_ErrorDialog( const char *error )
|
|||
#endif
|
||||
|
||||
// Make sure the write path for the crashlog exists...
|
||||
if( FS_CreatePath( ospath ) ) {
|
||||
Com_Printf( "ERROR: couldn't create path '%s' for crash log.\n", ospath );
|
||||
if(!Sys_Mkdir(ospath))
|
||||
{
|
||||
Com_Printf("ERROR: couldn't create path '%s' for crash log.\n", ospath);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue