Author: hpoussin
Date: Sat Jun 9 23:37:41 2007
New Revision: 27090
URL:
http://svn.reactos.org/svn/reactos?rev=27090&view=rev
Log:
Zero the full structure. Thanks Fireball
Modified:
trunk/reactos/ntoskrnl/io/pnpmgr/pnproot.c
Modified: trunk/reactos/ntoskrnl/io/pnpmgr/pnproot.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/io/pnpmgr/pnproot…
==============================================================================
--- trunk/reactos/ntoskrnl/io/pnpmgr/pnproot.c (original)
+++ trunk/reactos/ntoskrnl/io/pnpmgr/pnproot.c Sat Jun 9 23:37:41 2007
@@ -169,7 +169,7 @@
Status = STATUS_NO_MEMORY;
goto cleanup;
}
- RtlZeroMemory(Device, sizeof(Device));
+ RtlZeroMemory(Device, sizeof(PNPROOT_DEVICE));
if (!RtlCreateUnicodeString(&Device->DeviceID, DevicePath))
{
Status = STATUS_NO_MEMORY;