From: Thomas Faber Date: Sat, 12 May 2018 07:42:52 +0000 (+0200) Subject: [USBPORT] Fix x64 build. X-Git-Tag: 0.4.9-RC~57 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=0ce31759d068b6f8dda7eb79a9ecdd16c598a25e [USBPORT] Fix x64 build. --- diff --git a/drivers/usb/usbport/usbport.h b/drivers/usb/usbport/usbport.h index d09edb1b314..6ec826afede 100644 --- a/drivers/usb/usbport/usbport.h +++ b/drivers/usb/usbport/usbport.h @@ -394,7 +394,7 @@ typedef struct _USBPORT_DEVICE_EXTENSION { #if !defined(_M_X64) ULONG Padded[64]; #else - ULONG Padded[0]; + ULONG Padded[30]; #endif } USBPORT_DEVICE_EXTENSION, *PUSBPORT_DEVICE_EXTENSION; @@ -402,7 +402,7 @@ typedef struct _USBPORT_DEVICE_EXTENSION { #if !defined(_M_X64) C_ASSERT(sizeof(USBPORT_DEVICE_EXTENSION) == 0x500); #else -C_ASSERT(sizeof(USBPORT_DEVICE_EXTENSION) == 0x690); +C_ASSERT(sizeof(USBPORT_DEVICE_EXTENSION) == 0x700); #endif typedef struct _USBPORT_RH_DESCRIPTORS { diff --git a/sdk/include/reactos/drivers/usbport/usbmport.h b/sdk/include/reactos/drivers/usbport/usbmport.h index 0b1387179e0..a646eb1ab4b 100644 --- a/sdk/include/reactos/drivers/usbport/usbmport.h +++ b/sdk/include/reactos/drivers/usbport/usbmport.h @@ -51,9 +51,9 @@ typedef struct _USBPORT_RESOURCES { BOOLEAN ShareVector; UCHAR Padded2[3]; KINTERRUPT_MODE InterruptMode; - ULONG Reserved; + ULONG_PTR Reserved; PVOID ResourceBase; - SIZE_T IoSpaceLength; + ULONG IoSpaceLength; ULONG_PTR StartVA; ULONG StartPA; UCHAR LegacySupport; @@ -62,7 +62,7 @@ typedef struct _USBPORT_RESOURCES { UCHAR Reserved3; } USBPORT_RESOURCES, *PUSBPORT_RESOURCES; -C_ASSERT(sizeof(USBPORT_RESOURCES) == 24 + 7 * sizeof(PVOID)); +C_ASSERT(sizeof(USBPORT_RESOURCES) == 32 + 5 * sizeof(PVOID)); typedef struct _USBPORT_ENDPOINT_PROPERTIES { USHORT DeviceAddress; @@ -90,7 +90,7 @@ typedef struct _USBPORT_ENDPOINT_PROPERTIES { ULONG Reserved6; } USBPORT_ENDPOINT_PROPERTIES, *PUSBPORT_ENDPOINT_PROPERTIES; -C_ASSERT(sizeof(USBPORT_ENDPOINT_PROPERTIES) == 48 + 4 * sizeof(PVOID)); +C_ASSERT(sizeof(USBPORT_ENDPOINT_PROPERTIES) == 56 + 2 * sizeof(PVOID)); typedef struct _USBPORT_TRANSFER_PARAMETERS { ULONG TransferFlags;