use far for exception hook

This commit is contained in:
quaK 2024-07-11 19:48:42 +03:00
parent f0d3cfe9d8
commit 61d2fe06f3

View File

@ -156,7 +156,7 @@ namespace exception
auto* set_filter = ntdll.get_proc<void(*)(LPTOP_LEVEL_EXCEPTION_FILTER)>("RtlSetUnhandledExceptionFilter"); auto* set_filter = ntdll.get_proc<void(*)(LPTOP_LEVEL_EXCEPTION_FILTER)>("RtlSetUnhandledExceptionFilter");
set_filter(exception_filter); set_filter(exception_filter);
utils::hook::jump(set_filter, set_unhandled_exception_filter_stub); utils::hook::jump(set_filter, set_unhandled_exception_filter_stub, true);
} }
}; };
} }