Fixed a terminating NULL in IoRegisterDeviceInterface (same as r17397).
Modified: branches/cache_manager_rewrite/reactos/ntoskrnl/io/deviface.c

Modified: branches/cache_manager_rewrite/reactos/ntoskrnl/io/deviface.c
--- branches/cache_manager_rewrite/reactos/ntoskrnl/io/deviface.c	2005-08-15 16:47:15 UTC (rev 17397)
+++ branches/cache_manager_rewrite/reactos/ntoskrnl/io/deviface.c	2005-08-15 16:49:20 UTC (rev 17398)
@@ -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);