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
|
#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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue