r364 - trunk

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Wed Sep 26 23:00:40 EDT 2007


Author: icculus
Date: 2007-09-26 23:00:40 -0400 (Wed, 26 Sep 2007)
New Revision: 364

Modified:
   trunk/mojosetup.c
Log:
Don't crash if panic() when there's no initialized GUI layer.

Modified: trunk/mojosetup.c
===================================================================
--- trunk/mojosetup.c	2007-09-27 02:50:32 UTC (rev 363)
+++ trunk/mojosetup.c	2007-09-27 03:00:40 UTC (rev 364)
@@ -488,7 +488,7 @@
         if (domsgbox)
             GGui->msgbox(_("PANIC"), err);
 
-        if (GGui->deinit != NULL)
+        if ((GGui != NULL) && (GGui->deinit != NULL))
             GGui->deinit();
 
         if (!domsgbox)




More information about the mojosetup-commits mailing list