winexinput.sys: Clear the buffer passed to IOCTL_HID_GET_DEVICE_DESCRIPTOR.

Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Rémi Bernon 2022-05-16 11:42:51 +02:00 committed by Alexandre Julliard
parent b83f97dffc
commit eb923466f1

View file

@ -645,9 +645,9 @@ static NTSTATUS initialize_device(DEVICE_OBJECT *device)
PHIDP_REPORT_DESCRIPTOR report_desc; PHIDP_REPORT_DESCRIPTOR report_desc;
PHIDP_PREPARSED_DATA preparsed; PHIDP_PREPARSED_DATA preparsed;
HIDP_BUTTON_CAPS *button_caps; HIDP_BUTTON_CAPS *button_caps;
HID_DESCRIPTOR hid_desc = {0};
HIDP_VALUE_CAPS *value_caps; HIDP_VALUE_CAPS *value_caps;
HIDP_REPORT_IDS *reports; HIDP_REPORT_IDS *reports;
HID_DESCRIPTOR hid_desc;
NTSTATUS status; NTSTATUS status;
HIDP_CAPS caps; HIDP_CAPS caps;