mirror of
https://github.com/Artikash/Textractor.git
synced 2024-12-23 17:04:12 +08:00
bugfix
This commit is contained in:
parent
42585984c0
commit
31dafc4416
@ -716,6 +716,7 @@ int TextHook::ClearHook()
|
|||||||
{
|
{
|
||||||
WaitForSingleObject(hmMutex, 0);
|
WaitForSingleObject(hmMutex, 0);
|
||||||
int err = RemoveHook();
|
int err = RemoveHook();
|
||||||
|
NotifyHookRemove(hp.address);
|
||||||
if (hook_name) {
|
if (hook_name) {
|
||||||
delete[] hook_name;
|
delete[] hook_name;
|
||||||
hook_name = nullptr;
|
hook_name = nullptr;
|
||||||
@ -725,7 +726,6 @@ int TextHook::ClearHook()
|
|||||||
// current_available = this;
|
// current_available = this;
|
||||||
currentHook--;
|
currentHook--;
|
||||||
ReleaseMutex(hmMutex);
|
ReleaseMutex(hmMutex);
|
||||||
NotifyHookRemove(hp.address);
|
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user