dinput: Unacquire correct device.

This commit is contained in:
Vitaliy Margolen 2006-07-16 19:14:04 -06:00 committed by Alexandre Julliard
parent 13ce1a4543
commit 83bda8e6d4

View File

@ -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;