mirror of
https://github.com/Artikash/Textractor.git
synced 2024-12-23 17:04:12 +08:00
minor fixes
This commit is contained in:
parent
379024afc0
commit
f4980d6eb6
@ -24,6 +24,7 @@ HookManager::HookManager() :
|
|||||||
attach(nullptr),
|
attach(nullptr),
|
||||||
detach(nullptr),
|
detach(nullptr),
|
||||||
nextThreadNumber(0),
|
nextThreadNumber(0),
|
||||||
|
splitDelay(250),
|
||||||
textThreadsByParams(),
|
textThreadsByParams(),
|
||||||
processRecordsByIds()
|
processRecordsByIds()
|
||||||
{
|
{
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user