From d818c826e5e27ed472bf49e0d93ed30f9315572a Mon Sep 17 00:00:00 2001 From: hugy <504650082@qq.com> Date: Sat, 4 Feb 2023 15:07:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=BF=E7=94=A8=E5=BE=AE=E4=BF=A1=E5=86=85?= =?UTF-8?q?=E9=83=A8=E5=87=BD=E6=95=B0=E9=87=8A=E6=94=BE=E5=86=85=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/chat_room.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/chat_room.cc b/src/chat_room.cc index c031975..643deb1 100644 --- a/src/chat_room.cc +++ b/src/chat_room.cc @@ -231,6 +231,7 @@ int SetTopMsg(wchar_t* wxid,ULONG64 msg_id){ DWORD new_chat_msg_addr = base + WX_NEW_CHAT_MSG_OFFSET; DWORD get_chat_room_mgr_addr = base + WX_CHAT_ROOM_MGR_OFFSET; DWORD handle_top_msg_addr = base + WX_TOP_MSG_OFFSET; + DWORD free_addr = base + WX_FREE_CHAT_ROOM_OFFSET; vector local_msg = GetChatMsgByMsgId(msg_id); if(local_msg.empty()){ return -2; @@ -276,6 +277,8 @@ int SetTopMsg(wchar_t* wxid,ULONG64 msg_id){ PUSH EAX CALL handle_top_msg_addr MOV success,EAX + LEA ECX,chat_msg + CALL free_addr POPAD } return success; @@ -285,8 +288,6 @@ int SetTopMsg(wchar_t* wxid,ULONG64 msg_id){ int RemoveTopMsg(wchar_t* chat_room_id,ULONG64 msg_id){ int success = -1; - DWORD left = (DWORD)(&msg_id); - DWORD right = (DWORD)(&msg_id+4); WeChatString chat_room(chat_room_id); DWORD base = GetWeChatWinBase(); DWORD get_chat_room_mgr_addr = base + WX_CHAT_ROOM_MGR_OFFSET;