Commit 028e1ee3 authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

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

parent 6249de6e
......@@ -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;
}
}
......
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