mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 20:05:41 +00:00
[USBPORT] Type-safe function signature (PVOID -> PUSBPORT_xxx).
This commit is contained in:
parent
a913501626
commit
73bfc3c897
5 changed files with 89 additions and 84 deletions
|
@ -170,7 +170,7 @@ USBPORT_RootHubClassCommand(IN PDEVICE_OBJECT FdoDevice,
|
|||
case USB_REQUEST_CLEAR_FEATURE:
|
||||
Feature = SetupPacket->wValue.W;
|
||||
|
||||
if ((SetupPacket->bmRequestType.Recipient) != USBPORT_RECIPIENT_ROOT_PORT)
|
||||
if ((SetupPacket->bmRequestType.Recipient) != USBPORT_RECIPIENT_PORT)
|
||||
{
|
||||
if (Feature == FEATURE_C_HUB_LOCAL_POWER)
|
||||
{
|
||||
|
@ -242,7 +242,7 @@ USBPORT_RootHubClassCommand(IN PDEVICE_OBJECT FdoDevice,
|
|||
break;
|
||||
|
||||
case USB_REQUEST_SET_FEATURE:
|
||||
if (SetupPacket->bmRequestType.Recipient != USBPORT_RECIPIENT_ROOT_PORT)
|
||||
if (SetupPacket->bmRequestType.Recipient != USBPORT_RECIPIENT_PORT)
|
||||
{
|
||||
return RHStatus;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue