- Device interface strings are null terminated

svn path=/trunk/; revision=46748
This commit is contained in:
Johannes Anderwald
2010-04-06 14:00:02 +00:00
parent 2d1579957b
commit f9e0e0d0b3
-6
View File
@@ -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;