[PATCH v2 3/4] hidclass.sys: Zero-initialize the HID_DEVICE_ATTRIBUTES structure.
Zebediah Figura
z.figura12 at gmail.com
Wed Apr 14 09:39:59 CDT 2021
Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
---
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 5a4ebf8b42b..f7985d298d8 100644
--- a/dlls/hidclass.sys/pnp.c
+++ b/dlls/hidclass.sys/pnp.c
@@ -75,7 +75,7 @@ NTSTATUS WINAPI PNP_AddDevice(DRIVER_OBJECT *driver, DEVICE_OBJECT *PDO)
DEVICE_OBJECT *device = NULL;
NTSTATUS status;
minidriver *minidriver;
- HID_DEVICE_ATTRIBUTES attr;
+ HID_DEVICE_ATTRIBUTES attr = {0};
BASE_DEVICE_EXTENSION *ext = NULL;
HID_DESCRIPTOR descriptor;
BYTE *reportDescriptor;
--
2.30.2
More information about the wine-devel
mailing list