Zero the full structure. Thanks Fireball

svn path=/trunk/; revision=27090
This commit is contained in:
Hervé Poussineau 2007-06-09 19:37:41 +00:00
parent 0dabf31e76
commit 05b27afd12

View file

@ -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;