minor fixes

This commit is contained in:
Akash Mozumdar 2018-08-22 18:25:23 -04:00
parent e621155e25
commit 17b057adc0
2 changed files with 1 additions and 6 deletions

View File

@ -36,7 +36,7 @@ namespace Host
DLLEXPORT void Close() DLLEXPORT void Close()
{ {
// Artikash 7/25/2018: This is only called when NextHooker is closed, at which point Windows should free everything itself...right? // 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; HOST_LOCK;
OnRemove = [](TextThread* textThread) { delete textThread; }; OnRemove = [](TextThread* textThread) { delete textThread; };
for (auto i : processRecordsByIds) UnregisterProcess(i.first); for (auto i : processRecordsByIds) UnregisterProcess(i.first);

View File

@ -33,11 +33,6 @@ DWORD processStartAddress,
processStopAddress; processStopAddress;
enum { HOOK_BUFFER_SIZE = MAX_HOOK * sizeof(TextHook) }; 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]; WCHAR hm_section[0x100];
HANDLE hSection; HANDLE hSection;