diff options
author | Jose Fonseca <jfonseca@vmware.com> | 2016-09-12 16:31:39 +0100 |
---|---|---|
committer | Jose Fonseca <jfonseca@vmware.com> | 2016-09-12 16:31:39 +0100 |
commit | 3dbfe28c5749347a1d3d44fe248911465456c11d (patch) | |
tree | 3f46e1603a249209318c04bdbb2bee4b0c3995d0 /thirdparty | |
parent | 57ea55405fb2bcbba446aadc45bf39033f6a4270 (diff) |
mhook: Remove HeapAlloc anti-recursion hack.
It seems the previous Mhook_Unhook fix eliminates the need.
Diffstat (limited to 'thirdparty')
-rw-r--r-- | thirdparty/mhook/mhook-test.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/thirdparty/mhook/mhook-test.cpp b/thirdparty/mhook/mhook-test.cpp index c043866e..b2ac145e 100644 --- a/thirdparty/mhook/mhook-test.cpp +++ b/thirdparty/mhook/mhook-test.cpp @@ -103,12 +103,7 @@ int WSAAPI Hookgetaddrinfo(const char* nodename, const char* servname, const str // is in place // LPVOID WINAPI HookHeapAlloc(HANDLE a_Handle, DWORD a_Bla, SIZE_T a_Bla2) { - static int recurse = 0; - if (recurse == 0) { - ++recurse; - printf("***** Call to HeapAlloc(0x%p, %lu, 0x%p)\n", a_Handle, a_Bla, (LPVOID)a_Bla2); - --recurse; - } + printf("***** Call to HeapAlloc(0x%p, %lu, 0x%p)\n", a_Handle, a_Bla, (LPVOID)a_Bla2); return TrueHeapAlloc(a_Handle, a_Bla, a_Bla2); } |