Fixed a terminating NULL in IoRegisterDeviceInterface.
Modified: trunk/reactos/ntoskrnl/io/deviface.c

Modified: trunk/reactos/ntoskrnl/io/deviface.c
--- trunk/reactos/ntoskrnl/io/deviface.c	2005-08-15 16:41:43 UTC (rev 17396)
+++ trunk/reactos/ntoskrnl/io/deviface.c	2005-08-15 16:47:15 UTC (rev 17397)
@@ -815,7 +815,7 @@
       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);