Commit 65631661 authored by Andrew Eikum's avatar Andrew Eikum Committed by Alexandre Julliard

hid: Fix looking up report in HidP_GetValueCaps.

parent 80e21548
......@@ -450,8 +450,8 @@ NTSTATUS WINAPI HidP_GetValueCaps(HIDP_REPORT_TYPE ReportType, PHIDP_VALUE_CAPS
{
for (i = 0; i < report[j].elementCount && u < v_count; i++)
{
if (elems[report->elementIdx + i].ElementType == ValueElement)
ValueCaps[u++] = elems[report->elementIdx + i].caps.value;
if (elems[report[j].elementIdx + i].ElementType == ValueElement)
ValueCaps[u++] = elems[report[j].elementIdx + i].caps.value;
}
}
......
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