Commit 531297a8 authored by Rémi Bernon's avatar Rémi Bernon Committed by Alexandre Julliard

dinput: Ignore objects without a collection in init_pid_caps.

This makes sure we don't try to set effect_state report id from objects without a collection, causing some false warnings. Signed-off-by: 's avatarRémi Bernon <rbernon@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent e5131028
......@@ -1732,6 +1732,9 @@ static BOOL init_pid_caps( struct hid_joystick *impl, struct hid_value_caps *cap
FIXME( "multiple " #rep " report ids!\n" ); \
} while (0)
if (!instance->wCollectionNumber)
return DIENUM_CONTINUE;
if (instance->wCollectionNumber == effect_state->collection)
SET_REPORT_ID( effect_state );
......
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