hid: Fix looking up report in HidP_GetValueCaps.

Signed-off-by: Andrew Eikum <aeikum@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Andrew Eikum 2019-08-09 11:50:56 -05:00 committed by Alexandre Julliard
parent 80e2154856
commit 6563166142
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}
}