fix: hook flag

This commit is contained in:
hugy 2023-07-02 17:13:20 +08:00
parent 539d026146
commit 7ab8d4733f

View File

@ -168,7 +168,9 @@ int HookSyncMsg(std::string client_ip, int port, std::string url,
UINT64 do_add_msg_addr = base + offset::kDoAddMsg;
DetourAttach(&(PVOID&)R_DoAddMsg, &HandleSyncMsg);
LONG ret = DetourTransactionCommit();
if(ret == NO_ERROR){
kMsgHookFlag = true;
}
return ret;
}