Skip to content

Commit

Permalink
nope, can't order it that way
Browse files Browse the repository at this point in the history
  • Loading branch information
Artikash committed Sep 30, 2019
1 parent 8b345a4 commit b685bfc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions texthook/texthook.cc
Original file line number Diff line number Diff line change
Expand Up @@ -292,10 +292,10 @@ void TextHook::RemoveReadCode()
void TextHook::Clear()
{
if (address == 0) return;
NotifyHookRemove(address, hp.name);
std::scoped_lock lock(viewMutex);
if (hp.type & DIRECT_READ) RemoveReadCode();
else RemoveHookCode();
NotifyHookRemove(address, hp.name);
std::scoped_lock lock(viewMutex);
memset(&hp, 0, sizeof(HookParam));
address = 0;
}
Expand Down

0 comments on commit b685bfc

Please sign in to comment.