[PATCH 2/2] winexinput.sys: Clear the buffer passed to IOCTL_HID_GET_DEVICE_DESCRIPTOR.
Rémi Bernon
rbernon at codeweavers.com
Mon May 16 04:42:51 CDT 2022
Signed-off-by: Rémi Bernon <rbernon at codeweavers.com>
---
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;
--
2.35.1
More information about the wine-devel
mailing list