From f9e0e0d0b33302012fa861fd757fef2b867aeada Mon Sep 17 00:00:00 2001 From: Johannes Anderwald Date: Tue, 6 Apr 2010 14:00:02 +0000 Subject: [PATCH] [NTOS] - Device interface strings are null terminated svn path=/trunk/; revision=46748 --- reactos/ntoskrnl/io/iomgr/deviface.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/reactos/ntoskrnl/io/iomgr/deviface.c b/reactos/ntoskrnl/io/iomgr/deviface.c index d5b2246f31f..114e308c4a8 100644 --- a/reactos/ntoskrnl/io/iomgr/deviface.c +++ b/reactos/ntoskrnl/io/iomgr/deviface.c @@ -661,12 +661,6 @@ IoGetDeviceInterfaces(IN CONST GUID *InterfaceClassGuid, 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;