mirror of
https://github.com/ttttupup/wxhelper.git
synced 2024-11-05 18:09:24 +08:00
fix: hook flag
This commit is contained in:
parent
539d026146
commit
7ab8d4733f
@ -168,7 +168,9 @@ int HookSyncMsg(std::string client_ip, int port, std::string url,
|
|||||||
UINT64 do_add_msg_addr = base + offset::kDoAddMsg;
|
UINT64 do_add_msg_addr = base + offset::kDoAddMsg;
|
||||||
DetourAttach(&(PVOID&)R_DoAddMsg, &HandleSyncMsg);
|
DetourAttach(&(PVOID&)R_DoAddMsg, &HandleSyncMsg);
|
||||||
LONG ret = DetourTransactionCommit();
|
LONG ret = DetourTransactionCommit();
|
||||||
|
if(ret == NO_ERROR){
|
||||||
|
kMsgHookFlag = true;
|
||||||
|
}
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user