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:
parent
c6c5078807
commit
4eeee4b356
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue