Small DInput fix
Mark Westcott
mark at houseoffish.org
Fri May 23 04:27:55 CDT 2003
Hi all,
This makes DInput keyboard handling check for incoming X11 events when the
keyboard state is being queried. Fixes hangups on nasty apps that loop
asking for keyboard status.
Changelog:
-- DInput keyboard handling checks for incoming X11 events
Cheers, and thanks to Ove for this,
Mark
--- dlls/dinput/keyboard/main.c 15 Mar 2003 00:12:43 -0000 1.22
+++ dlls/dinput/keyboard/main.c 23 May 2003 08:18:35 -0000
@@ -281,6 +281,8 @@
if (len != 256)
return DIERR_INVALIDPARAM;
+ MsgWaitForMultipleObjectsEx(0, NULL, 0, 0, 0);
+
memcpy(ptr, DInputKeyState, 256);
return DI_OK;
}
@@ -304,6 +306,8 @@
if (dodsize < sizeof(*dod))
return DIERR_INVALIDPARAM;
+
+ MsgWaitForMultipleObjectsEx(0, NULL, 0, 0, 0);
EnterCriticalSection(&(This->crit));
More information about the wine-patches
mailing list