diff --git a/cpp/LunaHook/LunaHook/engine32/BGI.cpp b/cpp/LunaHook/LunaHook/engine32/BGI.cpp index f5835a84..a02733a2 100644 --- a/cpp/LunaHook/LunaHook/engine32/BGI.cpp +++ b/cpp/LunaHook/LunaHook/engine32/BGI.cpp @@ -1281,7 +1281,7 @@ bool InsertBGI4Hook_2() return false; HookParam hp; hp.address = addrs[0] + 5; - hp.type = CODEC_UTF16 | USING_STRING | NO_CONTEXT | EMBED_ABLE | EMBED_AFTER_NEW; + hp.type = CODEC_UTF16 | USING_STRING | EMBED_ABLE | EMBED_AFTER_NEW; hp.embed_hook_font = F_TextOutW | F_GetTextExtentPoint32W; hp.filter_fun = BGI7Filter; hp.offset = regoffset(eax); diff --git a/cpp/LunaHook/LunaHook/engine64/BGI.cpp b/cpp/LunaHook/LunaHook/engine64/BGI.cpp index bca3a0f9..de34bd60 100644 --- a/cpp/LunaHook/LunaHook/engine64/BGI.cpp +++ b/cpp/LunaHook/LunaHook/engine64/BGI.cpp @@ -107,7 +107,7 @@ bool BGIattach_function2() return false; HookParam hp; hp.address = addrs[0] + 5; - hp.type = CODEC_UTF16 | USING_STRING | NO_CONTEXT | EMBED_ABLE | EMBED_AFTER_NEW; + hp.type = CODEC_UTF16 | USING_STRING | EMBED_ABLE | EMBED_AFTER_NEW; hp.embed_hook_font = F_TextOutW | F_GetTextExtentPoint32W; hp.filter_fun = BGI7Filter; hp.offset = regoffset(rax);