Skip to content

Commit b685bfc

Browse files
committed
nope, can't order it that way
1 parent 8b345a4 commit b685bfc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

texthook/texthook.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,10 +292,10 @@ void TextHook::RemoveReadCode()
292292
void TextHook::Clear()
293293
{
294294
if (address == 0) return;
295-
NotifyHookRemove(address, hp.name);
296-
std::scoped_lock lock(viewMutex);
297295
if (hp.type & DIRECT_READ) RemoveReadCode();
298296
else RemoveHookCode();
297+
NotifyHookRemove(address, hp.name);
298+
std::scoped_lock lock(viewMutex);
299299
memset(&hp, 0, sizeof(HookParam));
300300
address = 0;
301301
}

0 commit comments

Comments
 (0)