mirror of
https://github.com/reactos/reactos.git
synced 2024-09-07 03:11:07 +00:00
Zero the full structure. Thanks Fireball
svn path=/trunk/; revision=27090
This commit is contained in:
parent
0dabf31e76
commit
05b27afd12
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue