Fixed a terminating NULL in IoRegisterDeviceInterface.
authorHartmut Birr <osexpert@googlemail.com>
Mon, 15 Aug 2005 16:47:15 +0000 (16:47 +0000)
committerHartmut Birr <osexpert@googlemail.com>
Mon, 15 Aug 2005 16:47:15 +0000 (16:47 +0000)
svn path=/trunk/; revision=17397

reactos/ntoskrnl/io/deviface.c

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