mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-10 21:16:24 +02:00
Make fastmem memory exceptions report the exceptions to Core correctly.
This commit is contained in:
1 parent
465367bf1b
commit
a56f391713
4 files changed
+22
-7
No files matched your search
@@ -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() {
|
||||
|
||||
Reference in new issue
Block a user