https://git.reactos.org/?p=reactos.git;a=commitdiff;h=0ce31759d068b6f8dda7e…
commit 0ce31759d068b6f8dda7eb79a9ecdd16c598a25e
Author: Thomas Faber <thomas.faber(a)reactos.org>
AuthorDate: Sat May 12 09:42:52 2018 +0200
Commit: Thomas Faber <thomas.faber(a)reactos.org>
CommitDate: Sat May 12 10:11:21 2018 +0200
[USBPORT] Fix x64 build.
---
drivers/usb/usbport/usbport.h | 4 ++--
sdk/include/reactos/drivers/usbport/usbmport.h | 8 ++++----
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/drivers/usb/usbport/usbport.h b/drivers/usb/usbport/usbport.h
index d09edb1b31..6ec826afed 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 0b1387179e..a646eb1ab4 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;