UsbDk: treat USB 1.x devices as full speed on Windows XP

Windows API doesn't provide means to distinguish between
low and full speed USB devices.

This patch changes XP code to make it wor the same way
Windows Vista+ code works.

Signed-off-by: Pavel Gurvich <pavel@daynix.com>
Signed-off-by: Dmitry Fleytman <dfleytma@redhat.com>
This commit is contained in:
Pavel Gurvich 2014-09-18 15:50:12 +03:00 • committed by Dmitry Fleytman
parent c6c5078807
commit 4eeee4b356

View file

@ -303,7 +303,7 @@ USB_DK_DEVICE_SPEED UsbDkWdmUsbDeviceGetSpeed(PDEVICE_OBJECT DevObj, PDRIVER_OBJ
if (NT_SUCCESS(status)) {
ASSERT(iusbb.IsDeviceHighSpeed && iusbb.InterfaceDereference);
res = iusbb.IsDeviceHighSpeed(iusbb.BusContext) ? HighSpeed : LowSpeed;
res = iusbb.IsDeviceHighSpeed(iusbb.BusContext) ? HighSpeed : FullSpeed;
iusbb.InterfaceDereference(iusbb.BusContext);
}