Length += wcslen(DeviceEntry->Instance);
/* zero byte and '\\' */
- Length += 2;
+ Length += 2;
/* allocate buffer */
Buffer = AllocateItem(NonPagedPool, Length * sizeof(WCHAR));
}
BusDeviceExtension->ServicePath.Length = 0;
- BusDeviceExtension->ServicePath.MaximumLength = Length;
+ BusDeviceExtension->ServicePath.MaximumLength = (USHORT)Length;
BusDeviceExtension->ServicePath.Buffer = AllocateItem(NonPagedPool, Length);
if (!BusDeviceExtension->ServicePath.Buffer)
/*
@implemented
*/
-KSDDKAPI
+KSDDKAPI
NTSTATUS
NTAPI
KsRemoveBusEnumInterface(