1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-21 18:22:33 +01:00

fix: make ASAN work on Windows

This commit is contained in:
oltolm 2023-04-12 23:47:14 +02:00 committed by Megamouse
parent 6a41b22a1b
commit b7b87096d8

View File

@ -1813,7 +1813,11 @@ static LONG exception_filter(PEXCEPTION_POINTERS pExp) noexcept
const bool s_exception_handler_set = []() -> bool
{
#ifdef USE_ASAN
if (!AddVectoredExceptionHandler(FALSE, (PVECTORED_EXCEPTION_HANDLER)exception_handler))
#else
if (!AddVectoredExceptionHandler(1, (PVECTORED_EXCEPTION_HANDLER)exception_handler))
#endif
{
report_fatal_error("AddVectoredExceptionHandler() failed.");
}