diff --git a/source/duke3d/src/mdump.cpp b/source/duke3d/src/mdump.cpp index 2e2709547..dc0a20324 100644 --- a/source/duke3d/src/mdump.cpp +++ b/source/duke3d/src/mdump.cpp @@ -45,7 +45,8 @@ LONG MiniDumper::TopLevelFilter( struct _EXCEPTION_POINTERS *pExceptionInfo ) hDll = ::LoadLibrary( "DBGHELP.DLL" ); } - LPCTSTR szResult = NULL; + LPCTSTR szResult = "DBGHELP.DLL not found";; + char szScratch [_MAX_PATH]; if (hDll) { @@ -53,7 +54,6 @@ LONG MiniDumper::TopLevelFilter( struct _EXCEPTION_POINTERS *pExceptionInfo ) if (pDump) { char szDumpPath[_MAX_PATH]; - char szScratch [_MAX_PATH]; // work out a good place for the dump file /*if (!GetTempPath( _MAX_PATH, szDumpPath )) @@ -104,13 +104,8 @@ LONG MiniDumper::TopLevelFilter( struct _EXCEPTION_POINTERS *pExceptionInfo ) szResult = "DBGHELP.DLL too old"; } } - else - { - szResult = "DBGHELP.DLL not found"; - } - if (szResult) - ::MessageBox( NULL, szResult, m_szAppName, MB_OK ); + ::MessageBox( NULL, szResult, m_szAppName, MB_OK ); return retval; } \ No newline at end of file