Changed position of callback(false) call on disabling hook for shift (#4515)

This commit is contained in:
Yevhenii Holovachov 2020-06-26 17:20:10 +03:00 committed by GitHub
parent 92fa8b7421
commit cc4864976a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -38,9 +38,9 @@ void ShiftKeyHook::disable()
{
if (hHook)
{
callback(false);
UnhookWindowsHookEx(hHook);
hHook = NULL;
callback(false);
}
}