[UNIATA] Fix packing for port configuration information structures

Now it's consistent with our structure in sdk/include/ddk/srb.h.
Thanks to Hervé Poussineau for help with problem analysis.

Also MSDN doesn't say anything about the structure packing:
https://docs.microsoft.com/en-us/windows-hardware/drivers/ddi/srb/ns-srb-_port_configuration_information

CORE-17966
This commit is contained in:
Stanislav Motylkov 2022-01-04 01:30:03 +03:00
parent 27955da7ee
commit 6ebe2ed3a1
No known key found for this signature in database
GPG key ID: AFE513258CBA9E92

View file

@ -43,6 +43,10 @@ typedef struct _ACCESS_RANGE {
BOOLEAN RangeInMemory;
}ACCESS_RANGE, *PACCESS_RANGE;
#ifdef __REACTOS__
#pragma pack(push, 4)
#endif
//
// Configuration information structure. Contains the information necessary
// to initialize the adapter. NOTE: This structure's must be a multiple of
@ -125,6 +129,10 @@ typedef struct _PORT_CONFIGURATION_INFORMATION_2K {
BOOLEAN WmiDataProvider;
} PORT_CONFIGURATION_INFORMATION_2K, *PPORT_CONFIGURATION_INFORMATION_2K;
#ifdef __REACTOS__
#pragma pack(pop)
#endif
typedef struct _PORT_CONFIGURATION_INFORMATION_COMMON {
PORT_CONFIGURATION_INFORMATION comm;
PORT_CONFIGURATION_INFORMATION_NT nt4;