From daf71ca50217c21edadc511feca4d4e9cf98a51a Mon Sep 17 00:00:00 2001 From: Thilo Schulz Date: Sun, 25 Aug 2013 12:00:30 +0200 Subject: [PATCH] Fix recursive crash when home path cannot be created --- code/sys/sys_unix.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/code/sys/sys_unix.c b/code/sys/sys_unix.c index 607d0f21..6bd9854b 100644 --- a/code/sys/sys_unix.c +++ b/code/sys/sys_unix.c @@ -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; }