https://git.reactos.org/?p=reactos.git;a=commitdiff;h=9426d2986de5174b73bf4…
commit 9426d2986de5174b73bf470372bfc84fcd6bdb95
Author: Vadim Galyant <vgal(a)rambler.ru>
AuthorDate: Mon Dec 25 15:19:43 2017 +0900
Commit: Amine Khaldi <amine.khaldi(a)reactos.org>
CommitDate: Sun Jan 21 19:35:56 2018 +0100
[USBPORT] Fixing calculation pointer for FdoExtension->Usb2Extension.
---
drivers/usb/usbport/usbport.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/usb/usbport/usbport.c b/drivers/usb/usbport/usbport.c
index 1dbe779daa..3be8e951ef 100644
--- a/drivers/usb/usbport/usbport.c
+++ b/drivers/usb/usbport/usbport.c
@@ -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);