From 1b2f470cd636c3c4ba4a8bd16cb9fc89508a1f10 Mon Sep 17 00:00:00 2001 From: Mat Sutcliffe Date: Tue, 24 Mar 2020 17:29:11 +0000 Subject: [PATCH] Reorder crashpad crash simulation in VERIFY/AUDIT so it happens after the log message rather than before --- src/blackmisc/verify.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/blackmisc/verify.cpp b/src/blackmisc/verify.cpp index cfc08f19a..63363f3d5 100644 --- a/src/blackmisc/verify.cpp +++ b/src/blackmisc/verify.cpp @@ -63,9 +63,6 @@ namespace BlackMisc #endif #if defined(QT_NO_DEBUG) || defined(Q_CC_MSVC) -# if defined(BLACK_USE_CRASHPAD) - CRASHPAD_SIMULATE_CRASH(); -# endif if (context && message) { CLogMessage(CLogCategory::verification()).warning(u"Failed to verify: %1 (%2 in %3) in %4 line %5") << condition << message << context << filename << line; @@ -74,6 +71,9 @@ namespace BlackMisc { CLogMessage(CLogCategory::verification()).warning(u"Failed to verify: %1 in %2 line %3") << condition << filename << line; } +# if defined(BLACK_USE_CRASHPAD) + CRASHPAD_SIMULATE_CRASH(); +# endif #endif } }