Limit IMI search to 7.

This commit is contained in:
Marvin D 2022-12-24 16:43:19 +01:00
parent e24b9b90a5
commit f9f09bd02a

View File

@ -155,7 +155,7 @@ long __stdcall ExceptionFilter(EXCEPTION_POINTERS* exceptionInfo)
if (!find_IMI_ref.empty())
{
const void* imiRetAddr = find_IMI_ref.at(0).Offset(0x5).RCast<void*>();
for (WORD i = 0; i < 10; i++)
for (WORD i = 0; i < 7; i++)
{
if (imiRetAddr == pStackTrace[i])
return EXCEPTION_CONTINUE_SEARCH;