mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-03 21:41:26 +12:00
Partial revert of 5871c4e93f
This commit is contained in:
parent
d37e770497
commit
cb252b1ce2
1 changed files with 10 additions and 0 deletions
|
@ -1531,6 +1531,11 @@ static LONG exception_handler(PEXCEPTION_POINTERS pExp) noexcept
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return EXCEPTION_CONTINUE_SEARCH;
|
||||||
|
}
|
||||||
|
|
||||||
|
static LONG exception_filter(PEXCEPTION_POINTERS pExp) noexcept
|
||||||
|
{
|
||||||
std::string msg = fmt::format("Unhandled Win32 exception 0x%08X.\n", pExp->ExceptionRecord->ExceptionCode);
|
std::string msg = fmt::format("Unhandled Win32 exception 0x%08X.\n", pExp->ExceptionRecord->ExceptionCode);
|
||||||
|
|
||||||
if (pExp->ExceptionRecord->ExceptionCode == EXCEPTION_ACCESS_VIOLATION)
|
if (pExp->ExceptionRecord->ExceptionCode == EXCEPTION_ACCESS_VIOLATION)
|
||||||
|
@ -1638,6 +1643,11 @@ const bool s_exception_handler_set = []() -> bool
|
||||||
report_fatal_error("AddVectoredExceptionHandler() failed.");
|
report_fatal_error("AddVectoredExceptionHandler() failed.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!SetUnhandledExceptionFilter((LPTOP_LEVEL_EXCEPTION_FILTER)exception_filter))
|
||||||
|
{
|
||||||
|
report_fatal_error("SetUnhandledExceptionFilter() failed.");
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}();
|
}();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue