[USBEHCI] Fix coverity #1476930 "Wrong sizeOf access" (#4070)

Reviewed-by: Victor Perevertkin <victor.perevertkin@reactos.org>
Reviewed-by: Thomas Faber <thomas.faber@reactos.org>
This commit is contained in:
Efe Itietie 2021-10-25 10:56:16 -07:00 committed by Stanislav Motylkov
parent a91f5e8e4d
commit feae6fbc64
No known key found for this signature in database
GPG key ID: AFE513258CBA9E92

View file

@ -154,7 +154,7 @@ EHCI_RH_GetRootHubData(IN PVOID ehciExtension,
} }
else else
{ {
/* Ganged power switching (all ports power at once) */ /* Ganged power switching (all ports' power at once) */
HubCharacteristics.PowerControlMode = 0; HubCharacteristics.PowerControlMode = 0;
} }
@ -355,7 +355,7 @@ EHCI_RH_PortResetComplete(IN PVOID ehciExtension,
RegPacket.UsbPortRequestAsyncCallback(EhciExtension, RegPacket.UsbPortRequestAsyncCallback(EhciExtension,
50, // TimerValue 50, // TimerValue
Port, Port,
sizeof(Port), sizeof(*Port),
EHCI_RH_FinishReset); EHCI_RH_FinishReset);
} }