[PATCH 1/2] hidclass.sys: Clear the buffer passed to IOCTL_HID_GET_DEVICE_DESCRIPTOR.
Rémi Bernon
rbernon at codeweavers.com
Mon May 16 04:42:50 CDT 2022
Signed-off-by: Rémi Bernon <rbernon at codeweavers.com>
---
Somehow the "ok( !desc->bLength, "got size %u\n", desc->bLength );" test
at driver_bus.c:1042 managed to pass all this time, and is now failing
for me locally.
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 fec51af40a9..cc4e3b96c82 100644
--- a/dlls/hidclass.sys/pnp.c
+++ b/dlls/hidclass.sys/pnp.c
@@ -192,8 +192,8 @@ static void create_child(minidriver *minidriver, DEVICE_OBJECT *fdo)
{
BASE_DEVICE_EXTENSION *fdo_ext = fdo->DeviceExtension, *pdo_ext;
HID_DEVICE_ATTRIBUTES attr = {0};
+ HID_DESCRIPTOR descriptor = {0};
HIDP_COLLECTION_DESC *desc;
- HID_DESCRIPTOR descriptor;
DEVICE_OBJECT *child_pdo;
BYTE *reportDescriptor;
UNICODE_STRING string;
--
2.35.1
More information about the wine-devel
mailing list