Fixed a terminating NULL in IoRegisterDeviceInterface.

svn path=/trunk/; revision=17397
This commit is contained in:
Hartmut Birr 2005-08-15 16:47:15 +00:00
parent a0fb1d3891
commit 8bb6155fdb

View file

@ -815,7 +815,7 @@ IoRegisterDeviceInterface(
RtlAppendUnicodeToString(SymbolicLinkName, L"\\"); RtlAppendUnicodeToString(SymbolicLinkName, L"\\");
RtlAppendUnicodeStringToString(SymbolicLinkName, ReferenceString); RtlAppendUnicodeStringToString(SymbolicLinkName, ReferenceString);
} }
SymbolicLinkName->Buffer[SymbolicLinkName->Length] = '\0'; SymbolicLinkName->Buffer[SymbolicLinkName->Length/sizeof(WCHAR)] = L'\0';
/* Create symbolic link */ /* Create symbolic link */
DPRINT("IoRegisterDeviceInterface(): creating symbolic link %wZ -> %wZ\n", SymbolicLinkName, &PdoNameInfo->Name); DPRINT("IoRegisterDeviceInterface(): creating symbolic link %wZ -> %wZ\n", SymbolicLinkName, &PdoNameInfo->Name);