- Don't touch the freed buffer in case of an error

- Found by Amine Khaldi

svn path=/trunk/; revision=42821
This commit is contained in:
Johannes Anderwald 2009-08-21 10:30:05 +00:00
parent 67d71e67d5
commit f5396c2fb8

View file

@ -920,7 +920,10 @@ IoRegisterDeviceInterface(IN PDEVICE_OBJECT PhysicalDeviceObject,
DPRINT("ZwSetValueKey() failed with status 0x%08lx\n", Status);
ExFreePool(SymbolicLinkName->Buffer);
}
SymbolicLinkName->Buffer[1] = '?';
else
{
SymbolicLinkName->Buffer[1] = '?';
}
ZwClose(SubKey);
ZwClose(InterfaceKey);