mirror of
https://github.com/Artikash/Textractor.git
synced 2024-12-23 08:54:12 +08:00
minor fixes
This commit is contained in:
parent
e621155e25
commit
17b057adc0
@ -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);
|
||||||
|
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user