highlight hooked entries and fix uninitialized Hooked

This commit is contained in:
BeneficialCode
2026-04-21 17:14:17 +08:00
parent 16625b3a0a
commit 84f2b3ea4f
4 changed files with 9 additions and 2 deletions
+3
View File
@@ -140,6 +140,9 @@ int CSSDTHookTable::ParseTableEntry(CString& s, char& mask, int& select, SystemS
s = Helpers::StringToWstring(info.TargetModule).c_str();
break;
}
if (info.Hooked) {
select |= DRAW_HILITE;
}
return s.GetLength();
}
+1 -1
View File
@@ -12,7 +12,7 @@ struct SystemServiceInfo {
std::string HookType;
uintptr_t CurrentAddress;
std::string TargetModule;
bool Hooked;
bool Hooked = false;
};
class CSSDTHookTable :
+4
View File
@@ -138,6 +138,10 @@ int CShadowSSDTHookTable::ParseTableEntry(CString& s, char& mask, int& select, S
break;
}
if (info.Hooked) {
select |= DRAW_HILITE;
}
return s.GetLength();
}
+1 -1
View File
@@ -9,7 +9,7 @@ struct ShadowSystemServiceInfo {
std::string HookType;
uintptr_t CurrentAddress;
std::string TargetModule;
bool Hooked;
bool Hooked = false;
};
class CShadowSSDTHookTable :