diff options
author | marha <marha@users.sourceforge.net> | 2010-03-10 17:33:51 +0000 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2010-03-10 17:33:51 +0000 |
commit | c394f19a54ed3cc959a47cdde6dbb53f31a9fa87 (patch) | |
tree | c1c6196372df20222659af9848d67fd58186ec44 /xorg-server/hw/xwin/winerror.c | |
parent | 14b1cb8d5a27ec9716d3f790fce95f0469e35605 (diff) | |
download | vcxsrv-c394f19a54ed3cc959a47cdde6dbb53f31a9fa87.tar.gz vcxsrv-c394f19a54ed3cc959a47cdde6dbb53f31a9fa87.tar.bz2 vcxsrv-c394f19a54ed3cc959a47cdde6dbb53f31a9fa87.zip |
Git update 10/3/2010
Diffstat (limited to 'xorg-server/hw/xwin/winerror.c')
-rw-r--r-- | xorg-server/hw/xwin/winerror.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/xorg-server/hw/xwin/winerror.c b/xorg-server/hw/xwin/winerror.c index 9ed27c3d0..191b9a921 100644 --- a/xorg-server/hw/xwin/winerror.c +++ b/xorg-server/hw/xwin/winerror.c @@ -41,8 +41,9 @@ /* References to external symbols */ extern char * g_pszCommandLine; -extern char * g_pszLogFile; +extern const char * g_pszLogFile; extern Bool g_fSilentFatalError; +extern Bool g_fLogInited; #ifdef DDXOSVERRORF @@ -87,6 +88,12 @@ OsVendorFatalError (void) if (g_fSilentFatalError) return; + if (!g_fLogInited) { + g_fLogInited = TRUE; + g_pszLogFile = LogInit (g_pszLogFile, NULL); + } + LogClose (); + winMessageBoxF ( "A fatal error has occurred and " PROJECT_NAME " will now exit.\n" \ "Please open %s for more information.\n", |