From 69511ddeda5d147a45dd91833472a813d68d89d9 Mon Sep 17 00:00:00 2001 From: Akash Mozumdar Date: Tue, 9 Oct 2018 04:31:54 -0400 Subject: [PATCH] fix error message on empty throws --- GUI/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GUI/main.cpp b/GUI/main.cpp index e536096..5af6850 100644 --- a/GUI/main.cpp +++ b/GUI/main.cpp @@ -17,7 +17,7 @@ LONG WINAPI ExceptionHandler(EXCEPTION_POINTERS* exception) #ifndef _WIN64 // See https://blogs.msdn.microsoft.com/oldnewthing/20100730-00/?p=13273 - if (exception->ExceptionRecord->ExceptionCode == 0xE06D7363) + if (exception->ExceptionRecord->ExceptionCode == 0xE06D7363 && exception->ExceptionRecord->ExceptionInformation[2]) errorMsg << "Additional info: " << ((char****)exception->ExceptionRecord->ExceptionInformation[2])[3][1][1] + 8 << std::endl; else #endif