refactor(message_handler): rename log call offset

This commit is contained in:
Changhua 2025-02-17 19:09:18 +08:00
parent 36f30a9d0a
commit b6a550a165
2 changed files with 3 additions and 3 deletions

View File

@ -194,7 +194,7 @@ int Handler::EnableLog()
if (isLogging) return 1;
pLogLevel = reinterpret_cast<uint32_t *>(g_WeChatWinDllAddr + OsLog::LEVEL);
funcWxLog = reinterpret_cast<funcWxLog_t>(g_WeChatWinDllAddr + OsLog::FUNCTION);
funcWxLog = reinterpret_cast<funcWxLog_t>(g_WeChatWinDllAddr + OsLog::CALL);
if (InitializeHook() != MH_OK) return -1;
if (MH_CreateHook(funcWxLog, &PrintWxLog, reinterpret_cast<LPVOID *>(&realWxLog)) != MH_OK) return -2;

View File

@ -20,8 +20,8 @@ namespace Message
{
namespace Log
{
constexpr uint64_t FUNCTION = 0x261B890; // 日志函数
constexpr uint64_t LEVEL = 0x56E4244; // 日志级别
constexpr uint64_t LEVEL = 0x56E4244; // 日志级别
constexpr uint64_t CALL = 0x261B890; // 日志函数
}
}
}