From 83bda8e6d441d4da51461307ecd0524439a6d3f7 Mon Sep 17 00:00:00 2001 From: Vitaliy Margolen Date: Sun, 16 Jul 2006 19:14:04 -0600 Subject: [PATCH] dinput: Unacquire correct device. --- dlls/dinput/keyboard.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/dinput/keyboard.c b/dlls/dinput/keyboard.c index d9a8c43ecf..f6195b1490 100644 --- a/dlls/dinput/keyboard.c +++ b/dlls/dinput/keyboard.c @@ -518,7 +518,7 @@ static HRESULT WINAPI SysKeyboardAImpl_Acquire(LPDIRECTINPUTDEVICE8A iface) 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;