From 50d7cdf8fb3e9d7c2611f7b9be57a9d6a69e076c Mon Sep 17 00:00:00 2001 From: Akash Mozumdar Date: Sun, 20 May 2018 19:04:10 -0400 Subject: [PATCH] remove useless code --- vnr/texthook/host/hookman.cc | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/vnr/texthook/host/hookman.cc b/vnr/texthook/host/hookman.cc index d8f5cba..97abda6 100644 --- a/vnr/texthook/host/hookman.cc +++ b/vnr/texthook/host/hookman.cc @@ -74,20 +74,6 @@ DWORD GetHookName(LPSTR str, DWORD pid, DWORD hook_addr, DWORD max) break; } - // jichi 9/27/2013: The hook man should be consistent with the one defined in vnrcli - //Hook *h = (Hook *)hks; - //for (int i = 0; i < MAX_HOOK; i++) - // if (!h[i].hook_name) - // break; - // else { - // const Hook &hi = h[i]; - // wchar_t buffer[1000]; - // DWORD len = hi.NameLength(); - // NtReadVirtualMemory(pr->process_handle, hi.hook_name, buffer, len << 1, &len); - // buffer[len] = 0; - // ITH_MSG(buffer); - // } - NtReleaseMutant(pr->hookman_mutex, 0); //::man->UnlockProcessHookman(pid); return len;