diff --git a/src/winapi_hooks.c b/src/winapi_hooks.c index c0a2f38..9ee2eab 100644 --- a/src/winapi_hooks.c +++ b/src/winapi_hooks.c @@ -689,9 +689,6 @@ BOOL WINAPI fake_GetMessageA(LPMSG lpMsg, HWND hWnd, UINT wMsgFilterMin, UINT wM lpMsg->pt.x = min(x, g_ddraw.width - 1); lpMsg->pt.y = min(y, g_ddraw.height - 1); - - InterlockedExchange((LONG*)&g_ddraw.cursor.x, lpMsg->pt.x); - InterlockedExchange((LONG*)&g_ddraw.cursor.y, lpMsg->pt.y); } else { @@ -727,9 +724,6 @@ BOOL WINAPI fake_PeekMessageA(LPMSG lpMsg, HWND hWnd, UINT wMsgFilterMin, UINT w lpMsg->pt.x = min(x, g_ddraw.width - 1); lpMsg->pt.y = min(y, g_ddraw.height - 1); - - InterlockedExchange((LONG*)&g_ddraw.cursor.x, lpMsg->pt.x); - InterlockedExchange((LONG*)&g_ddraw.cursor.y, lpMsg->pt.y); } else {