From 3d8308e447530c745542ffbf963ab9e53792ac4c Mon Sep 17 00:00:00 2001 From: Thilo Schulz Date: Sun, 25 Aug 2013 12:00:30 +0200 Subject: Fix recursive crash when home path cannot be created --- src/sys/sys_unix.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/sys') 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; } -- cgit