Skip to content
Snippets Groups Projects
Commit db480bcd authored by Andrew A. de Laix's avatar Andrew A. de Laix
Browse files

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

parent 75c1c70b
No related branches found
No related tags found
No related merge requests found
......@@ -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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment