fixed jump

This commit is contained in:
WolverinDEV 2019-10-27 19:11:45 +01:00
parent 5715c6e2b9
commit a75a5a0fa3

View File

@ -64,18 +64,20 @@ void create_minidump(struct _EXCEPTION_POINTERS* apExceptionInfo)
goto error_handling; goto error_handling;
} }
_MINIDUMP_EXCEPTION_INFORMATION ExInfo{}; {
ExInfo.ThreadId = ::GetCurrentThreadId(); _MINIDUMP_EXCEPTION_INFORMATION ExInfo{};
ExInfo.ExceptionPointers = apExceptionInfo; ExInfo.ThreadId = ::GetCurrentThreadId();
ExInfo.ClientPointers = FALSE; ExInfo.ExceptionPointers = apExceptionInfo;
ExInfo.ClientPointers = FALSE;
if(!pDump(GetCurrentProcess(), GetCurrentProcessId(), hDumpFile, MiniDumpNormal, &ExInfo, nullptr, nullptr)) { if(!pDump(GetCurrentProcess(), GetCurrentProcessId(), hDumpFile, MiniDumpNormal, &ExInfo, nullptr, nullptr)) {
error = "failed to generate dump file"; error = "failed to generate dump file";
goto error_handling; goto error_handling;
}
::CloseHandle(hDumpFile);
win_crash_callback(file_path, error, true);
return;
} }
::CloseHandle(hDumpFile);
win_crash_callback(file_path, error, true);
return;
error_handling: error_handling:
if(hDumpFile) { if(hDumpFile) {