Make fastmem memory exceptions report the exceptions to Core correctly.

This commit is contained in:
Henrik Rydgård committed 2020-07-14 09:25:45 +02:00
1 parent 465367bf1b
commit a56f391713
4 files changed
+22 -7

No files matched your search

+2 -2
View File
@@ -40,7 +40,7 @@ static BadAccessHandler g_badAccessHandler;
static PVOID g_vectoredExceptionHandle;
static LONG NTAPI Handler(PEXCEPTION_POINTERS pPtrs) {
static LONG NTAPI GlobalExceptionHandler(PEXCEPTION_POINTERS pPtrs) {
switch (pPtrs->ExceptionRecord->ExceptionCode) {
case EXCEPTION_ACCESS_VIOLATION:
{
@@ -96,7 +96,7 @@ void InstallExceptionHandler(BadAccessHandler badAccessHandler) {
INFO_LOG(SYSTEM, "Installing exception handler");
g_badAccessHandler = badAccessHandler;
g_vectoredExceptionHandle = AddVectoredExceptionHandler(TRUE, Handler);
g_vectoredExceptionHandle = AddVectoredExceptionHandler(TRUE, GlobalExceptionHandler);
}
void UninstallExceptionHandler() {