From 05b27afd12db0fd5fd04f37110d6a1a741ab7f79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20Poussineau?= Date: Sat, 9 Jun 2007 19:37:41 +0000 Subject: [PATCH] Zero the full structure. Thanks Fireball svn path=/trunk/; revision=27090 --- reactos/ntoskrnl/io/pnpmgr/pnproot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/ntoskrnl/io/pnpmgr/pnproot.c b/reactos/ntoskrnl/io/pnpmgr/pnproot.c index beaa4051959..150ea9a778e 100644 --- a/reactos/ntoskrnl/io/pnpmgr/pnproot.c +++ b/reactos/ntoskrnl/io/pnpmgr/pnproot.c @@ -169,7 +169,7 @@ PnpRootCreateDevice( Status = STATUS_NO_MEMORY; goto cleanup; } - RtlZeroMemory(Device, sizeof(Device)); + RtlZeroMemory(Device, sizeof(PNPROOT_DEVICE)); if (!RtlCreateUnicodeString(&Device->DeviceID, DevicePath)) { Status = STATUS_NO_MEMORY;