fix(crash): try to handle crash in vectored excpt handler

This commit is contained in:
Diavolo 2023-04-01 12:35:41 +02:00
parent c782368020
commit 76d46f4c2f
No known key found for this signature in database
GPG Key ID: FA77F074E98D98A5

View File

@ -71,6 +71,11 @@ namespace arxan
return EXCEPTION_CONTINUE_EXECUTION;
}
if (info->ExceptionRecord->ExceptionCode == STATUS_SINGLE_STEP)
{
return EXCEPTION_CONTINUE_EXECUTION;
}
return EXCEPTION_CONTINUE_SEARCH;
}
@ -136,7 +141,7 @@ namespace arxan
nt_query_information_process_hook.create(ntdll.get_proc<void*>("NtQueryInformationProcess"),
nt_query_information_process_stub);
AddVectoredExceptionHandler(1, exception_filter);
AddVectoredExceptionHandler(0, exception_filter);
}
void post_unpack() override