hid: Only set first usage in an array in HidP_SetUsageValue.

Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Aric Stewart <aric@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
stable
Piotr Caban 2019-05-03 11:59:13 +02:00 committed by Alexandre Julliard
parent 6249de6e5d
commit 028e1ee3db
1 changed files with 1 additions and 0 deletions

View File

@ -263,6 +263,7 @@ static NTSTATUS find_value(HIDP_REPORT_TYPE ReportType, USAGE UsagePage, USHORT
else if (report->Elements[i].caps.value.u.NotRange.Usage == Usage)
{
*element = report->Elements[i];
element->bitCount = value->BitSize;
return HIDP_STATUS_SUCCESS;
}
}