mirror of
https://github.com/reactos/reactos.git
synced 2025-07-24 22:13:53 +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:
parent
67d71e67d5
commit
f5396c2fb8
1 changed files with 4 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue