refactor(message_handler): rename log call offset
This commit is contained in:
parent
36f30a9d0a
commit
b6a550a165
@ -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;
|
||||
|
@ -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; // 日志函数
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user