diff options
author | Thilo Schulz <thilo@tjps.eu> | 2013-08-25 12:00:30 +0200 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2014-06-17 17:43:34 +0100 |
commit | 3d8308e447530c745542ffbf963ab9e53792ac4c (patch) | |
tree | c2ffb1e701023041699ecda5fff1f304737cf264 /src/sys | |
parent | 52d8a6ab67037b9044edc482da911f10165da881 (diff) |
Fix recursive crash when home path cannot be created
Diffstat (limited to 'src/sys')
-rw-r--r-- | src/sys/sys_unix.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/sys/sys_unix.c b/src/sys/sys_unix.c index f29ddd07..10a71b43 100644 --- a/src/sys/sys_unix.c +++ b/src/sys/sys_unix.c @@ -515,8 +515,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; } |