This commit is contained in:
恍兮惚兮 2024-11-30 01:57:55 +08:00
parent 4944421d76
commit 0867510416
2 changed files with 2 additions and 22 deletions

View File

@ -1548,17 +1548,7 @@ bool InsertBGI4Hook_2()
return false;
auto addrs = findxref_reverse_checkcallop(addr, processStartAddress, processStopAddress, 0xe8);
if (1 != addrs.size())
{
HookParam hp;
hp.address = addrs[0];
hp.type = USING_STRING;
hp.filter_fun = [](TextBuffer *buffer, HookParam *)
{
StringFilterBetween(buffer, "<", 1, ">", 1);
};
hp.offset = GETARG1;
return NewHook(hp, "BGI");
}
return false;
HookParam hp;
hp.address = addrs[0] + 5;
hp.type = CODEC_UTF16 | USING_STRING | NO_CONTEXT | EMBED_ABLE | EMBED_AFTER_NEW;

View File

@ -104,17 +104,7 @@ bool BGIattach_function2()
return false;
auto addrs = findxref_reverse_checkcallop(addr, processStartAddress, processStopAddress, 0xe8);
if (1 != addrs.size())
{
HookParam hp;
hp.address = addrs[0];
hp.type = USING_STRING;
hp.filter_fun = [](TextBuffer *buffer, HookParam *)
{
StringFilterBetween(buffer, "<", 1, ">", 1);
};
hp.offset = GETARG1;
return NewHook(hp, "BGI");
}
return false;
HookParam hp;
hp.address = addrs[0] + 5;
hp.type = CODEC_UTF16 | USING_STRING | NO_CONTEXT | EMBED_ABLE | EMBED_AFTER_NEW;