Vitaliy Margolen : dinput: Remove MsgWaitForMultipleObjects calls.

Alexandre Julliard julliard at wine.codeweavers.com
Thu Dec 28 07:40:28 CST 2006


Module: wine
Branch: master
Commit: b22ff8018aca7c365e505f1db7732f7050ae259b
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=b22ff8018aca7c365e505f1db7732f7050ae259b

Author: Vitaliy Margolen <wine-patches at kievinfo.com>
Date:   Wed Dec 27 16:30:39 2006 -0700

dinput: Remove MsgWaitForMultipleObjects calls.

---

 dlls/dinput/keyboard.c |    8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/dlls/dinput/keyboard.c b/dlls/dinput/keyboard.c
index 4308b45..34800ff 100644
--- a/dlls/dinput/keyboard.c
+++ b/dlls/dinput/keyboard.c
@@ -282,9 +282,7 @@ static HRESULT WINAPI SysKeyboardAImpl_G
     if (!This->base.acquired) return DIERR_NOTACQUIRED;
 
     if (len != WINE_DINPUT_KEYBOARD_MAX_KEYS)
-      return DIERR_INVALIDPARAM;
-
-    MsgWaitForMultipleObjectsEx(0, NULL, 0, QS_ALLINPUT, 0);
+        return DIERR_INVALIDPARAM;
 
     EnterCriticalSection(&This->base.crit);
 
@@ -548,9 +546,7 @@ static HRESULT WINAPI SysKeyboardAImpl_P
     TRACE("(%p)\n",This);
 
     if (!This->base.acquired) return DIERR_NOTACQUIRED;
-
-    MsgWaitForMultipleObjectsEx(0, NULL, 0, QS_ALLINPUT, 0);
-    return DI_OK;
+    return DI_NOEFFECT;
 }
 
 static const IDirectInputDevice8AVtbl SysKeyboardAvt =




More information about the wine-cvs mailing list