From eb923466f14cbe758476d58e31f650459cd8b281 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Bernon?= Date: Mon, 16 May 2022 11:42:51 +0200 Subject: [PATCH] winexinput.sys: Clear the buffer passed to IOCTL_HID_GET_DEVICE_DESCRIPTOR. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: RĂ©mi Bernon Signed-off-by: Alexandre Julliard --- dlls/winexinput.sys/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/winexinput.sys/main.c b/dlls/winexinput.sys/main.c index e0ffb71440f..6d33b740e46 100644 --- a/dlls/winexinput.sys/main.c +++ b/dlls/winexinput.sys/main.c @@ -645,9 +645,9 @@ static NTSTATUS initialize_device(DEVICE_OBJECT *device) PHIDP_REPORT_DESCRIPTOR report_desc; PHIDP_PREPARSED_DATA preparsed; HIDP_BUTTON_CAPS *button_caps; + HID_DESCRIPTOR hid_desc = {0}; HIDP_VALUE_CAPS *value_caps; HIDP_REPORT_IDS *reports; - HID_DESCRIPTOR hid_desc; NTSTATUS status; HIDP_CAPS caps;