diff --git a/src/hooks.cc b/src/hooks.cc index 176ad1c..84d56cc 100644 --- a/src/hooks.cc +++ b/src/hooks.cc @@ -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; }