From 820abd826bf0d6af1415243a63ccf626eaa8eaa5 Mon Sep 17 00:00:00 2001 From: Changhua Date: Thu, 27 Jun 2024 21:06:08 +0800 Subject: [PATCH] Refactoring --- WeChatFerry/spy/chatroom_mgmt.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/WeChatFerry/spy/chatroom_mgmt.cpp b/WeChatFerry/spy/chatroom_mgmt.cpp index 5bcb35e..58df716 100644 --- a/WeChatFerry/spy/chatroom_mgmt.cpp +++ b/WeChatFerry/spy/chatroom_mgmt.cpp @@ -24,8 +24,8 @@ int AddChatroomMember(string roomid, string wxids) return status; } - funcGetChatRoomMgr_t funcGetChatRoomMgr = (funcGetChatRoomMgr_t)(g_WeChatWinDllAddr + g_WxCalls.arm.call1); - funcAddMemberToChatRoom_t funcAddMemberToChatRoom = (funcAddMemberToChatRoom_t)(g_WeChatWinDllAddr + g_WxCalls.arm.call2); + funcGetChatRoomMgr_t GetChatRoomMgr = (funcGetChatRoomMgr_t)(g_WeChatWinDllAddr + g_WxCalls.arm.call1); + funcAddMemberToChatRoom_t AddMembers = (funcAddMemberToChatRoom_t)(g_WeChatWinDllAddr + g_WxCalls.arm.call2); vector vMembers; vector vWxMembers; @@ -42,8 +42,8 @@ int AddChatroomMember(string roomid, string wxids) WxString *pWxRoomid = NewWxStringFromStr(roomid); QWORD pMembers = (QWORD) & ((RawVector_t *)&vWxMembers)->start; - QWORD mgr = funcGetChatRoomMgr(); - status = (int)funcAddMemberToChatRoom(mgr, pMembers, (QWORD)pWxRoomid, (QWORD)temp); + QWORD mgr = GetChatRoomMgr(); + status = (int)AddMembers(mgr, pMembers, (QWORD)pWxRoomid, (QWORD)temp); return status; }