dinput: Unacquire correct device.

Vitaliy Margolen wine-patch at kievinfo.com
Sun Jul 16 20:14:04 CDT 2006


ChangeLog:
dinput: Unacquire correct device.

Fixes bug# 5674.

 dlls/dinput/keyboard.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
-------------- next part --------------
ab5ac7af1725dc302cbca5a1cd49309e610d4251
diff --git a/dlls/dinput/keyboard.c b/dlls/dinput/keyboard.c
index d9a8c43..f6195b1 100644
--- a/dlls/dinput/keyboard.c
+++ b/dlls/dinput/keyboard.c
@@ -518,7 +518,7 @@ static HRESULT WINAPI SysKeyboardAImpl_A
 
         if (current_lock != NULL) {
 	  FIXME("Not more than one keyboard can be acquired at the same time.\n");
-	  SysKeyboardAImpl_Unacquire(iface);
+	  SysKeyboardAImpl_Unacquire((LPDIRECTINPUTDEVICE8A)current_lock);
 	}
 	
         current_lock = This;


More information about the wine-patches mailing list