aboutsummaryrefslogtreecommitdiff
path: root/src/common/Debugging/WheatyExceptionReport.h
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2018-03-10 15:15:41 +0100
committerShauren <shauren.trinity@gmail.com>2018-03-10 15:15:41 +0100
commitabdf6479ddbf42c8b53cb943c54203211ceb0691 (patch)
treecae92dcba32d74d1f8b52153cdf3dbf35c856094 /src/common/Debugging/WheatyExceptionReport.h
parent12beb3dd1b5166481ed68f945b4294ff4aca9000 (diff)
Core/CrashHandler: Fixed generating crash logs from CRT debug assertions
Diffstat (limited to 'src/common/Debugging/WheatyExceptionReport.h')
-rw-r--r--src/common/Debugging/WheatyExceptionReport.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common/Debugging/WheatyExceptionReport.h b/src/common/Debugging/WheatyExceptionReport.h
index 0f5ceb3c263..7d7ae3feb4e 100644
--- a/src/common/Debugging/WheatyExceptionReport.h
+++ b/src/common/Debugging/WheatyExceptionReport.h
@@ -154,6 +154,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
@@ -191,6 +193,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;