forked from Public-Mirror/Textractor
nope, can't order it that way
This commit is contained in:
parent
8b345a4377
commit
b685bfc780
@ -292,10 +292,10 @@ void TextHook::RemoveReadCode()
|
|||||||
void TextHook::Clear()
|
void TextHook::Clear()
|
||||||
{
|
{
|
||||||
if (address == 0) return;
|
if (address == 0) return;
|
||||||
NotifyHookRemove(address, hp.name);
|
|
||||||
std::scoped_lock lock(viewMutex);
|
|
||||||
if (hp.type & DIRECT_READ) RemoveReadCode();
|
if (hp.type & DIRECT_READ) RemoveReadCode();
|
||||||
else RemoveHookCode();
|
else RemoveHookCode();
|
||||||
|
NotifyHookRemove(address, hp.name);
|
||||||
|
std::scoped_lock lock(viewMutex);
|
||||||
memset(&hp, 0, sizeof(HookParam));
|
memset(&hp, 0, sizeof(HookParam));
|
||||||
address = 0;
|
address = 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user