diff --git a/host/host.cc b/host/host.cc index 1126f80..ce82c31 100644 --- a/host/host.cc +++ b/host/host.cc @@ -36,7 +36,7 @@ namespace Host DLLEXPORT void Close() { // Artikash 7/25/2018: This is only called when NextHooker is closed, at which point Windows should free everything itself...right? -#ifdef _DEBUG +#ifdef _DEBUG // Check memory leaks HOST_LOCK; OnRemove = [](TextThread* textThread) { delete textThread; }; for (auto i : processRecordsByIds) UnregisterProcess(i.first); diff --git a/vnrhook/src/main.cc b/vnrhook/src/main.cc index c6fb780..37786a1 100644 --- a/vnrhook/src/main.cc +++ b/vnrhook/src/main.cc @@ -33,11 +33,6 @@ DWORD processStartAddress, processStopAddress; enum { HOOK_BUFFER_SIZE = MAX_HOOK * sizeof(TextHook) }; -//#define MAX_HOOK (HOOK_BUFFER_SIZE/sizeof(TextHook)) -DWORD hook_buff_len = HOOK_BUFFER_SIZE; - -namespace { FilterRange _filter[IHF_FILTER_CAPACITY]; } -FilterRange *filter = _filter; WCHAR hm_section[0x100]; HANDLE hSection;