diff --git a/cpp/LunaHook/LunaHook/engine32/BGI.cpp b/cpp/LunaHook/LunaHook/engine32/BGI.cpp index 814aaf2f..0dfcd459 100644 --- a/cpp/LunaHook/LunaHook/engine32/BGI.cpp +++ b/cpp/LunaHook/LunaHook/engine32/BGI.cpp @@ -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; diff --git a/cpp/LunaHook/LunaHook/engine64/BGI.cpp b/cpp/LunaHook/LunaHook/engine64/BGI.cpp index d23c8abd..998e3d18 100644 --- a/cpp/LunaHook/LunaHook/engine64/BGI.cpp +++ b/cpp/LunaHook/LunaHook/engine64/BGI.cpp @@ -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;