Core/CrashHandler: Fixed generating crash logs from CRT debug assertions

(cherry picked from commit abdf6479ddbf42c8b53cb943c54203211ceb0691)
This commit is contained in:
Shauren authored and Aokromes committed 2018-03-10 23:49:43 +01:00
1 parent bb4ccf59c3
commit b7e29526a2
2 files changed
+12

No files matched your search

@@ -155,6 +155,8 @@ class WheatyExceptionReport
static LONG WINAPI WheatyUnhandledExceptionFilter(
PEXCEPTION_POINTERS pExceptionInfo);
static void __cdecl WheatyCrtHandler(wchar_t const* expression, wchar_t const* function, wchar_t const* file, unsigned int line, uintptr_t pReserved);
static void printTracesForAllThreads(bool);
private:
// where report info is extracted and generated
@@ -192,6 +194,7 @@ class WheatyExceptionReport
static TCHAR m_szLogFileName[MAX_PATH];
static TCHAR m_szDumpFileName[MAX_PATH];
static LPTOP_LEVEL_EXCEPTION_FILTER m_previousFilter;
static _invalid_parameter_handler m_previousCrtHandler;
static HANDLE m_hReportFile;
static HANDLE m_hDumpFile;
static HANDLE m_hProcess;