Andrew Eikum : hid: Fix looking up report in HidP_GetValueCaps.
Alexandre Julliard
julliard at winehq.org
Fri Aug 9 14:49:32 CDT 2019
Module: wine
Branch: master
Commit: 6563166142b60f5857e4341f926e9cff7cc4cec1
URL: https://source.winehq.org/git/wine.git/?a=commit;h=6563166142b60f5857e4341f926e9cff7cc4cec1
Author: Andrew Eikum <aeikum at codeweavers.com>
Date: Fri Aug 9 11:50:56 2019 -0500
hid: Fix looking up report in HidP_GetValueCaps.
Signed-off-by: Andrew Eikum <aeikum at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/hid/hidp.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/hid/hidp.c b/dlls/hid/hidp.c
index 8f4a474..59a4078 100644
--- a/dlls/hid/hidp.c
+++ b/dlls/hid/hidp.c
@@ -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;
}
}
More information about the wine-cvs
mailing list