Don't write windows os minidumps if running from a debugger.

master
Andrew A. de Laix 2010-07-09 13:30:58 -07:00
parent 75c1c70b25
commit db480bcd9c
1 changed files with 4 additions and 1 deletions

View File

@ -91,12 +91,15 @@ LONG NTAPI vectoredHandler(PEXCEPTION_POINTERS exception_infop)
}
// static
void LLWinDebug::init()
void LLWinDebug::init()
{
static bool s_first_run = true;
// Load the dbghelp dll now, instead of waiting for the crash.
// Less potential for stack mangling
// Don't install vectored exception handler if being debugged.
if(IsDebuggerPresent()) return;
if (s_first_run)
{
// First, try loading from the directory that the app resides in.