From 44182eef6221443d2f45cb50891b6e6df43c6c32 Mon Sep 17 00:00:00 2001 From: Tindy X <49061470+tindy2013@users.noreply.github.com> Date: Wed, 21 Jul 2021 02:36:14 +0800 Subject: [PATCH] Fix some packets may fail to parse --- src/struct.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/struct.h b/src/struct.h index 4198d24..0bcd407 100644 --- a/src/struct.h +++ b/src/struct.h @@ -1,6 +1,9 @@ #ifndef STRUCT_H_INCLUDED #define STRUCT_H_INCLUDED +#pragma pack(push) +#pragma pack(1) + struct IPCMemoryInfo { uint8_t airIoStatus[6]; @@ -76,4 +79,6 @@ struct PacketPing uint64_t remotePingTime; }; +#pragma pack(pop) + #endif // STRUCT_H_INCLUDED