diff --git a/reactos/ntoskrnl/io/iomgr/deviface.c b/reactos/ntoskrnl/io/iomgr/deviface.c index d83124a7bbb..51b2b7ad63c 100644 --- a/reactos/ntoskrnl/io/iomgr/deviface.c +++ b/reactos/ntoskrnl/io/iomgr/deviface.c @@ -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);