[USBPORT] Fixing calculation pointer for FdoExtension->Usb2Extension.

This commit is contained in:
Vadim Galyant 2017-12-25 15:19:43 +09:00 committed by Amine Khaldi
parent 7b92b8a6e2
commit 9426d2986d

View file

@ -1907,8 +1907,8 @@ USBPORT_AddDevice(IN PDRIVER_OBJECT DriverObject,
if (MiniPortInterface->Packet.MiniPortFlags & USB_MINIPORT_FLAGS_USB2)
{
FdoExtension->Usb2Extension =
(PUSB2_HC_EXTENSION)FdoExtension->MiniPortExt +
MiniPortInterface->Packet.MiniPortExtensionSize;
(PUSB2_HC_EXTENSION)((ULONG_PTR)FdoExtension->MiniPortExt +
MiniPortInterface->Packet.MiniPortExtensionSize);
DPRINT("USBPORT_AddDevice: Usb2Extension - %p\n",
FdoExtension->Usb2Extension);