typedef struct _IO_ERROR_LOG_PACKET {
UCHAR MajorFunctionCode; offset: 0 byte, size: 1 byte
UCHAR RetryCount ; offset: 1 byte, size: 1 byte
USHORT DumpDataSize ; offset: 2 byte, size: 2 byte
USHORT NumberOfStrings ; offset: 4 byte, size: 2 byte
USHORT StringOffset ; offset: 6 byte, size: 2 byte
USHORT EventCategory ; offset: 8 byte, size: 2 byte + 2 byte for alignment
NTSTATUS ErrorCode ; offset: 12 byte, size: 4 byte
ULONG UniqueErrorValue ; offset: 16 byte, size: 4 byte
NTSTATUS FinalStatus ; offset: 20 byte, size: 4 byte
ULONG SequenceNumber ; offset: 24 byte, size: 4 byte
ULONG IoControlCode ; offset: 28 byte, size: 4 byte
LARGE_INTEGER DeviceOffset; offset: 32 byte, size: 8 byte
ULONG DumpData[1] ; offset: 40 byte, size: 4 byte
} IO_ERROR_LOG_PACKET, *PIO_ERROR_LOG_PACKET;
; total = 44 byte
I expected sizeof(IO_ERROR_LOG_PACKET)
to be 44 bytes. But when I disassembled it, it turned out to be 48 bytes. Does someone know why?