mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-03 21:41:26 +12:00
fix: make ASAN work on Windows
This commit is contained in:
parent
6a41b22a1b
commit
b7b87096d8
1 changed files with 4 additions and 0 deletions
|
@ -1813,7 +1813,11 @@ static LONG exception_filter(PEXCEPTION_POINTERS pExp) noexcept
|
||||||
|
|
||||||
const bool s_exception_handler_set = []() -> bool
|
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))
|
if (!AddVectoredExceptionHandler(1, (PVECTORED_EXCEPTION_HANDLER)exception_handler))
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
report_fatal_error("AddVectoredExceptionHandler() failed.");
|
report_fatal_error("AddVectoredExceptionHandler() failed.");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue