diff --git a/src/windows.cpp b/src/windows.cpp index 52e353e82c..8af8dafe41 100644 --- a/src/windows.cpp +++ b/src/windows.cpp @@ -873,10 +873,10 @@ handleException(LPEXCEPTION_POINTERS e) if (jump) { return EXCEPTION_CONTINUE_EXECUTION; } - } - if (system->crashDumpDirectory) { - dump(e, system->crashDumpDirectory); + if (system->crashDumpDirectory) { + dump(e, system->crashDumpDirectory); + } } return EXCEPTION_CONTINUE_SEARCH;