fix: add friend by wxid . close #148

This commit is contained in:
hugy 2023-06-06 16:02:32 +08:00
parent 926babbc66
commit a777f05512

View File

@ -131,13 +131,17 @@ int ContactMgr::AddFriendByWxid(wchar_t *wxid,wchar_t* msg) {
WeChatString w_msg(msg);
DWORD instance =0;
Unkown null_obj={0,0,0,0,0,0xF};
// EDI,0xE ESI,0 all
// EDI,0xE ESI,8 only chat
// EDI,0xE ESI,1 no let look
// EDI,0xE ESI,2 no look
__asm{
PUSHAD
PUSHFD
CALL contact_mgr_addr
MOV dword ptr [instance],EAX
MOV EDI,0x6
MOV ESI,0
MOV EDI,0xE
MOV ESI,0x8
MOV EAX,0x2
SUB ESP,0x18
MOV EAX,ESP
@ -150,8 +154,8 @@ int ContactMgr::AddFriendByWxid(wchar_t *wxid,wchar_t* msg) {
MOV ECX,ESP
PUSH EAX
CALL fn1_addr
PUSH 0x0
PUSH 0x6
PUSH ESI
PUSH EDI
MOV EAX,w_msg
SUB ESP,0x14