diff --git a/src/winapi_hooks.c b/src/winapi_hooks.c index a16d860..3d7632b 100644 --- a/src/winapi_hooks.c +++ b/src/winapi_hooks.c @@ -724,7 +724,7 @@ SHORT WINAPI fake_GetKeyState(int nVirtKey) return 0; } - return GetKeyState(nVirtKey); + return real_GetKeyState(nVirtKey); } SHORT WINAPI fake_GetAsyncKeyState(int vKey) @@ -735,7 +735,7 @@ SHORT WINAPI fake_GetAsyncKeyState(int vKey) return 0; } - return GetAsyncKeyState(vKey); + return real_GetAsyncKeyState(vKey); } int WINAPI fake_GetDeviceCaps(HDC hdc, int index) diff --git a/src/wndproc.c b/src/wndproc.c index d545046..31cbc02 100644 --- a/src/wndproc.c +++ b/src/wndproc.c @@ -775,7 +775,7 @@ LRESULT CALLBACK fake_WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam if (g_config.hotkeys.unlock_cursor1 && (wParam == VK_CONTROL || wParam == g_config.hotkeys.unlock_cursor1)) { - if (GetAsyncKeyState(VK_CONTROL) & 0x8000 && GetAsyncKeyState(g_config.hotkeys.unlock_cursor1) & 0x8000) + if (real_GetAsyncKeyState(VK_CONTROL) & 0x8000 && real_GetAsyncKeyState(g_config.hotkeys.unlock_cursor1) & 0x8000) { mouse_unlock(); return 0; @@ -785,7 +785,7 @@ LRESULT CALLBACK fake_WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam if (g_config.hotkeys.unlock_cursor2 && (wParam == g_config.hotkeys.unlock_cursor2 || wParam == VK_MENU || wParam == VK_CONTROL)) { - if ((GetAsyncKeyState(VK_RMENU) & 0x8000) && GetAsyncKeyState(g_config.hotkeys.unlock_cursor2) & 0x8000) + if ((real_GetAsyncKeyState(VK_RMENU) & 0x8000) && real_GetAsyncKeyState(g_config.hotkeys.unlock_cursor2) & 0x8000) { mouse_unlock(); return 0;