summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavel Gurvich <pavel@daynix.com>2014-09-18 15:50:12 +0300
committerDmitry Fleytman <dfleytma@redhat.com>2014-09-18 16:00:56 +0300
commit4eeee4b356c19d05c1e67d05231df59a83f87066 (patch)
tree72faf041e8da3d00769ab060696ecce2c7b554d7
parentc6c50788079cb61fcb2658853359d979c9bc34e8 (diff)
UsbDk: treat USB 1.x devices as full speed on Windows XPv0.03-1
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>
-rw-r--r--UsbDk/DeviceAccess.cpp2
1 files changed, 1 insertions, 1 deletions
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);
}