x86 build fix

This commit is contained in:
flyinghead 2021-07-24 23:17:27 +02:00
parent 710f379bd3
commit c6d7307efe
1 changed files with 3 additions and 3 deletions

View File

@ -23,7 +23,7 @@ bool VramLockedWrite(u8* address);
bool BM_LockedWrite(u8* address); bool BM_LockedWrite(u8* address);
static PVOID vectoredHandler; static PVOID vectoredHandler;
static LONG (*prevExceptionHandler)(EXCEPTION_POINTERS *ep); static LONG (WINAPI *prevExceptionHandler)(EXCEPTION_POINTERS *ep);
static void readContext(const EXCEPTION_POINTERS *ep, host_context_t &context) static void readContext(const EXCEPTION_POINTERS *ep, host_context_t &context)
{ {
@ -55,7 +55,7 @@ static void writeContext(EXCEPTION_POINTERS *ep, const host_context_t &context)
#endif #endif
} }
LONG exceptionHandler(EXCEPTION_POINTERS *ep) static LONG WINAPI exceptionHandler(EXCEPTION_POINTERS *ep)
{ {
u32 dwCode = ep->ExceptionRecord->ExceptionCode; u32 dwCode = ep->ExceptionRecord->ExceptionCode;
@ -114,7 +114,7 @@ void os_InstallFaultHandler()
prevExceptionHandler = SetUnhandledExceptionFilter(nullptr); prevExceptionHandler = SetUnhandledExceptionFilter(nullptr);
vectoredHandler = AddVectoredExceptionHandler(1, exceptionHandler); vectoredHandler = AddVectoredExceptionHandler(1, exceptionHandler);
#else #else
prevExceptionHandler = SetUnhandledExceptionFilter((LPTOP_LEVEL_EXCEPTION_FILTER)&exceptionHandler); prevExceptionHandler = SetUnhandledExceptionFilter(exceptionHandler);
(void)vectoredHandler; (void)vectoredHandler;
#endif #endif
} }