Rémi Bernon : hidclass.sys: Fix parsed report descriptor length index.
Alexandre Julliard
julliard at winehq.org
Wed Mar 24 16:20:40 CDT 2021
Module: wine
Branch: master
Commit: 75dd9b92369ce27e15e070f966e2224ad973ee3b
URL: https://source.winehq.org/git/wine.git/?a=commit;h=75dd9b92369ce27e15e070f966e2224ad973ee3b
Author: Rémi Bernon <rbernon at codeweavers.com>
Date: Wed Mar 24 14:57:59 2021 +0100
hidclass.sys: Fix parsed report descriptor length index.
Signed-off-by: Rémi Bernon <rbernon at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/hidclass.sys/pnp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/hidclass.sys/pnp.c b/dlls/hidclass.sys/pnp.c
index a50e7382466..a499aec93bb 100644
--- a/dlls/hidclass.sys/pnp.c
+++ b/dlls/hidclass.sys/pnp.c
@@ -161,7 +161,7 @@ NTSTATUS WINAPI PNP_AddDevice(DRIVER_OBJECT *driver, DEVICE_OBJECT *PDO)
return status;
}
- ext->preparseData = ParseDescriptor(reportDescriptor, descriptor.DescriptorList[0].wReportLength);
+ ext->preparseData = ParseDescriptor(reportDescriptor, descriptor.DescriptorList[i].wReportLength);
HeapFree(GetProcessHeap(), 0, reportDescriptor);
if (!ext->preparseData)
More information about the wine-cvs
mailing list