minor fixes

This commit is contained in:
Akash Mozumdar 2018-07-19 23:22:55 -04:00
parent 379024afc0
commit f4980d6eb6
3 changed files with 32 additions and 31 deletions

View File

@ -24,6 +24,7 @@ HookManager::HookManager() :
attach(nullptr), attach(nullptr),
detach(nullptr), detach(nullptr),
nextThreadNumber(0), nextThreadNumber(0),
splitDelay(250),
textThreadsByParams(), textThreadsByParams(),
processRecordsByIds() processRecordsByIds()
{ {

View File

@ -103,7 +103,7 @@ DLLEXPORT bool InjectProcessById(DWORD processId, DWORD timeout)
{ {
WaitForSingleObject(thread, timeout); WaitForSingleObject(thread, timeout);
CloseHandle(thread); CloseHandle(thread);
VirtualFreeEx(processHandle, remoteData, textHookerPathSize, MEM_RELEASE); VirtualFreeEx(processHandle, remoteData, 0, MEM_RELEASE);
CloseHandle(processHandle); CloseHandle(processHandle);
return true; return true;
} }