fix error message on empty throws

This commit is contained in:
Akash Mozumdar 2018-10-09 04:31:54 -04:00
parent 16e17526c7
commit 69511ddeda

View File

@ -17,7 +17,7 @@ LONG WINAPI ExceptionHandler(EXCEPTION_POINTERS* exception)
#ifndef _WIN64 #ifndef _WIN64
// See https://blogs.msdn.microsoft.com/oldnewthing/20100730-00/?p=13273 // 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; errorMsg << "Additional info: " << ((char****)exception->ExceptionRecord->ExceptionInformation[2])[3][1][1] + 8 << std::endl;
else else
#endif #endif