[ros-diffs] [cgutman] 47028: [NTOSKRNL] - Revert r46682 - The NULL terminator is not supposed to be included in the length - Fixes corruption when printing the symbolic link

cgutman at svn.reactos.org cgutman at svn.reactos.org
Mon Apr 26 06:18:12 CEST 2010


Author: cgutman
Date: Mon Apr 26 06:18:11 2010
New Revision: 47028

URL: http://svn.reactos.org/svn/reactos?rev=47028&view=rev
Log:
[NTOSKRNL]
- Revert r46682
- The NULL terminator is not supposed to be included in the length
- Fixes corruption when printing the symbolic link

Modified:
    trunk/reactos/ntoskrnl/io/iomgr/deviface.c

Modified: trunk/reactos/ntoskrnl/io/iomgr/deviface.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/io/iomgr/deviface.c?rev=47028&r1=47027&r2=47028&view=diff
==============================================================================
--- trunk/reactos/ntoskrnl/io/iomgr/deviface.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/io/iomgr/deviface.c [iso-8859-1] Mon Apr 26 06:18:11 2010
@@ -1055,7 +1055,6 @@
         RtlAppendUnicodeStringToString(SymbolicLinkName, ReferenceString);
     }
     SymbolicLinkName->Buffer[SymbolicLinkName->Length/sizeof(WCHAR)] = L'\0';
-    SymbolicLinkName->Length += sizeof(WCHAR);
 
     /* Write symbolic link name in registry */
     SymbolicLinkName->Buffer[1] = '\\';




More information about the Ros-diffs mailing list