forked from Public-Mirror/Textractor
minor fixes
This commit is contained in:
parent
379024afc0
commit
f4980d6eb6
@ -24,6 +24,7 @@ HookManager::HookManager() :
|
||||
attach(nullptr),
|
||||
detach(nullptr),
|
||||
nextThreadNumber(0),
|
||||
splitDelay(250),
|
||||
textThreadsByParams(),
|
||||
processRecordsByIds()
|
||||
{
|
||||
|
@ -103,7 +103,7 @@ DLLEXPORT bool InjectProcessById(DWORD processId, DWORD timeout)
|
||||
{
|
||||
WaitForSingleObject(thread, timeout);
|
||||
CloseHandle(thread);
|
||||
VirtualFreeEx(processHandle, remoteData, textHookerPathSize, MEM_RELEASE);
|
||||
VirtualFreeEx(processHandle, remoteData, 0, MEM_RELEASE);
|
||||
CloseHandle(processHandle);
|
||||
return true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user