[NTOSKRNL]
authorCameron Gutman <aicommander@gmail.com>
Mon, 26 Apr 2010 04:18:11 +0000 (04:18 +0000)
committerCameron Gutman <aicommander@gmail.com>
Mon, 26 Apr 2010 04:18:11 +0000 (04:18 +0000)
- Revert r46682
- The NULL terminator is not supposed to be included in the length
- Fixes corruption when printing the symbolic link

svn path=/trunk/; revision=47028

reactos/ntoskrnl/io/iomgr/deviface.c

index 114e308..59eddeb 100644 (file)
@@ -1055,7 +1055,6 @@ IoRegisterDeviceInterface(IN PDEVICE_OBJECT PhysicalDeviceObject,
         RtlAppendUnicodeStringToString(SymbolicLinkName, ReferenceString);
     }
     SymbolicLinkName->Buffer[SymbolicLinkName->Length/sizeof(WCHAR)] = L'\0';
-    SymbolicLinkName->Length += sizeof(WCHAR);
 
     /* Write symbolic link name in registry */
     SymbolicLinkName->Buffer[1] = '\\';