https://git.reactos.org/?p=reactos.git;a=commitdiff;h=6ebe2ed3a1176a99d66c4…
commit 6ebe2ed3a1176a99d66c4f31ef4b7da97cce9314
Author:     Stanislav Motylkov <x86corez(a)gmail.com>
AuthorDate: Tue Jan 4 01:30:03 2022 +0300
Commit:     Stanislav Motylkov <x86corez(a)gmail.com>
CommitDate: Tue Jan 4 14:30:27 2022 +0300
    [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-_p…
    CORE-17966
---
 drivers/storage/ide/uniata/srb.h | 8 ++++++++
 1 file changed, 8 insertions(+)
diff --git a/drivers/storage/ide/uniata/srb.h b/drivers/storage/ide/uniata/srb.h
index af1bde9f332..feb355e55cf 100644
--- a/drivers/storage/ide/uniata/srb.h
+++ b/drivers/storage/ide/uniata/srb.h
@@ -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;