[ros-diffs] [janderwald] 46748: [NTOS] - Device interface strings are null terminated

janderwald at svn.reactos.org janderwald at svn.reactos.org
Tue Apr 6 16:00:03 CEST 2010


Author: janderwald
Date: Tue Apr  6 16:00:02 2010
New Revision: 46748

URL: http://svn.reactos.org/svn/reactos?rev=46748&view=rev
Log:
[NTOS]
- Device interface strings are null terminated

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=46748&r1=46747&r2=46748&view=diff
==============================================================================
--- trunk/reactos/ntoskrnl/io/iomgr/deviface.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/io/iomgr/deviface.c [iso-8859-1] Tue Apr  6 16:00:02 2010
@@ -661,12 +661,6 @@
                 DPRINT("RtlAppendUnicodeStringToString() failed with status 0x%08lx\n", Status);
                 goto cleanup;
             }
-            /* RtlAppendUnicodeStringToString added a NULL at the end of the
-            * destination string, but didn't increase the Length field.
-            * Do it for it.
-            */
-            ReturnBuffer.Length += sizeof(WCHAR);
-
 NextReferenceString:
             ExFreePool(ReferenceBi);
             ReferenceBi = NULL;




More information about the Ros-diffs mailing list