diff --git a/WeChatFerry/spy/receive_msg.cpp b/WeChatFerry/spy/receive_msg.cpp index 8a225a4..53cb55d 100644 --- a/WeChatFerry/spy/receive_msg.cpp +++ b/WeChatFerry/spy/receive_msg.cpp @@ -110,7 +110,7 @@ void UnListenMessage() return; } - status = MH_DisableHook(&recvMsgCallAddr); + status = MH_DisableHook(&funcRecvMsg); if (status != MH_OK) { LOG_ERROR("MH_DisableHook failed: {}", to_string(status)); return;