Fix recursive crash when home path cannot be created
This commit is contained in:
1 parent
311376af8a
commit
daf71ca502
1 file changed
+3
-2
+3
-2
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user