From 4eeee4b356c19d05c1e67d05231df59a83f87066 Mon Sep 17 00:00:00 2001 From: Pavel Gurvich Date: Thu, 18 Sep 2014 15:50:12 +0300 Subject: [PATCH] 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 Signed-off-by: Dmitry Fleytman --- UsbDk/DeviceAccess.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UsbDk/DeviceAccess.cpp b/UsbDk/DeviceAccess.cpp index c8d5d06..efcbc8e 100644 --- a/UsbDk/DeviceAccess.cpp +++ b/UsbDk/DeviceAccess.cpp @@ -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); }