mirror of
https://github.com/reactos/reactos.git
synced 2025-08-01 23:32:59 +00:00
[USBCCGP] Allow unconfiguring the device in USBCCGP_PDOSelectConfiguration.
Fixes device removal for USB audio devices.
This commit is contained in:
parent
528fc589c0
commit
46b0f6d9de
1 changed files with 8 additions and 0 deletions
|
@ -718,6 +718,14 @@ USBCCGP_PDOSelectConfiguration(
|
|||
return STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
//
|
||||
// if there is no configuration descriptor, unconfigure the device
|
||||
//
|
||||
if (Urb->UrbSelectConfiguration.ConfigurationDescriptor == NULL)
|
||||
{
|
||||
return STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
// sanity checks
|
||||
//C_ASSERT(sizeof(struct _URB_HEADER) == 16);
|
||||
//C_ASSERT(FIELD_OFFSET(struct _URB_SELECT_CONFIGURATION, Interface.Length) == 24);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue