mirror of
https://github.com/reactos/reactos.git
synced 2024-07-12 23:55:07 +00:00
[USBEHCI] [USBOHCI] [USBUHCI]
- Fix retrieving configuration index for real - Thanks to Thomas Faber svn path=/trunk/; revision=55812
This commit is contained in:
parent
eb1402eb83
commit
946cac440c
|
@ -1056,7 +1056,7 @@ CUSBDevice::SelectConfiguration(
|
|||
//
|
||||
for(Index = 0; Index < m_DeviceDescriptor.bNumConfigurations; Index++)
|
||||
{
|
||||
if (m_ConfigurationDescriptors[Index].ConfigurationDescriptor->iConfiguration == ConfigurationDescriptor->iConfiguration)
|
||||
if (m_ConfigurationDescriptors[Index].ConfigurationDescriptor->bConfigurationValue == ConfigurationDescriptor->bConfigurationValue)
|
||||
{
|
||||
//
|
||||
// found configuration index
|
||||
|
@ -1068,7 +1068,7 @@ CUSBDevice::SelectConfiguration(
|
|||
|
||||
if (!Found)
|
||||
{
|
||||
DPRINT1("[USBUHCI] invalid configuration index %lu\n", ConfigurationDescriptor->iConfiguration);
|
||||
DPRINT1("[USBUHCI] invalid configuration value %lu\n", ConfigurationDescriptor->bConfigurationValue);
|
||||
return STATUS_INVALID_PARAMETER;
|
||||
}
|
||||
|
||||
|
|
|
@ -1115,7 +1115,7 @@ CUSBDevice::SelectConfiguration(
|
|||
//
|
||||
for(Index = 0; Index < m_DeviceDescriptor.bNumConfigurations; Index++)
|
||||
{
|
||||
if (m_ConfigurationDescriptors[Index].ConfigurationDescriptor->iConfiguration == ConfigurationDescriptor->iConfiguration)
|
||||
if (m_ConfigurationDescriptors[Index].ConfigurationDescriptor->bConfigurationValue == ConfigurationDescriptor->bConfigurationValue)
|
||||
{
|
||||
//
|
||||
// found configuration index
|
||||
|
@ -1127,7 +1127,7 @@ CUSBDevice::SelectConfiguration(
|
|||
|
||||
if (!Found)
|
||||
{
|
||||
DPRINT1("[USBUHCI] invalid configuration index %lu\n", ConfigurationDescriptor->iConfiguration);
|
||||
DPRINT1("[USBUHCI] invalid configuration index %lu\n", ConfigurationDescriptor->bConfigurationValue);
|
||||
return STATUS_INVALID_PARAMETER;
|
||||
}
|
||||
|
||||
|
|
|
@ -1155,7 +1155,7 @@ CUSBDevice::SelectConfiguration(
|
|||
//
|
||||
for(Index = 0; Index < m_DeviceDescriptor.bNumConfigurations; Index++)
|
||||
{
|
||||
if (m_ConfigurationDescriptors[Index].ConfigurationDescriptor->iConfiguration == ConfigurationDescriptor->iConfiguration)
|
||||
if (m_ConfigurationDescriptors[Index].ConfigurationDescriptor->bConfigurationValue == ConfigurationDescriptor->bConfigurationValue)
|
||||
{
|
||||
//
|
||||
// found configuration index
|
||||
|
@ -1167,7 +1167,7 @@ CUSBDevice::SelectConfiguration(
|
|||
|
||||
if (!Found)
|
||||
{
|
||||
DPRINT1("[USBUHCI] invalid configuration index %lu\n", ConfigurationDescriptor->iConfiguration);
|
||||
DPRINT1("[USBUHCI] invalid configuration value %lu\n", ConfigurationDescriptor->bConfigurationValue);
|
||||
return STATUS_INVALID_PARAMETER;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue