mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 19:26:32 +00:00
- 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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user