mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
[SCSIPORT] Use pointer alignment for MiniPortDeviceExtension
This seems logical and some miniport drivers (uniata) actually rely on that. CORE-17424
This commit is contained in:
parent
e5c27b2fd6
commit
66cf1d20f4
1 changed files with 9 additions and 1 deletions
|
@ -217,6 +217,12 @@ typedef struct _SCSI_PORT_SAVE_INTERRUPT
|
|||
* part is the miniport-specific device extension.
|
||||
*/
|
||||
|
||||
#ifdef _WIN64
|
||||
#define ALIGNAS_PTR DECLSPEC_ALIGN(8)
|
||||
#else
|
||||
#define ALIGNAS_PTR DECLSPEC_ALIGN(4)
|
||||
#endif
|
||||
|
||||
// FDO
|
||||
typedef struct _SCSI_PORT_DEVICE_EXTENSION
|
||||
{
|
||||
|
@ -312,7 +318,9 @@ typedef struct _SCSI_PORT_DEVICE_EXTENSION
|
|||
BOOLEAN DeviceStarted;
|
||||
UINT8 TotalLUCount;
|
||||
|
||||
UCHAR MiniPortDeviceExtension[1]; /* must be the last entry */
|
||||
// use the pointer alignment here, some miniport drivers rely on this
|
||||
// moreover, it has to be the last member
|
||||
ALIGNAS_PTR UCHAR MiniPortDeviceExtension[];
|
||||
} SCSI_PORT_DEVICE_EXTENSION, *PSCSI_PORT_DEVICE_EXTENSION;
|
||||
|
||||
typedef struct _RESETBUS_PARAMS
|
||||
|
|
Loading…
Reference in a new issue