Commit 278cc8e2 authored by Vitaliy Margolen's avatar Vitaliy Margolen Committed by Alexandre Julliard

dinput: When setting hooks ignore devices without even handler.

parent 64ef4c4e
...@@ -921,7 +921,7 @@ static DWORD WINAPI hook_thread_proc(void *param) ...@@ -921,7 +921,7 @@ static DWORD WINAPI hook_thread_proc(void *param)
EnterCriticalSection( &dinput->crit ); EnterCriticalSection( &dinput->crit );
LIST_FOR_EACH_ENTRY( dev, &dinput->devices_list, IDirectInputDevice2AImpl, entry ) LIST_FOR_EACH_ENTRY( dev, &dinput->devices_list, IDirectInputDevice2AImpl, entry )
{ {
if (!dev->acquired) continue; if (!dev->acquired || !dev->event_proc) continue;
if (IsEqualGUID( &dev->guid, &GUID_SysKeyboard ) || if (IsEqualGUID( &dev->guid, &GUID_SysKeyboard ) ||
IsEqualGUID( &dev->guid, &DInput_Wine_Keyboard_GUID )) IsEqualGUID( &dev->guid, &DInput_Wine_Keyboard_GUID ))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment