[NTOSKRNL]

- 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
This commit is contained in:
Cameron Gutman 2010-04-26 04:18:11 +00:00
parent b5a39d6dd1
commit 770cc844b0

View file

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