Fix some packets may fail to parse

This commit is contained in:
Tindy X 2021-07-21 02:36:14 +08:00
parent f01e7d3320
commit 44182eef62
No known key found for this signature in database
GPG Key ID: C6AD413169968D58
1 changed files with 5 additions and 0 deletions

View File

@ -1,6 +1,9 @@
#ifndef STRUCT_H_INCLUDED #ifndef STRUCT_H_INCLUDED
#define STRUCT_H_INCLUDED #define STRUCT_H_INCLUDED
#pragma pack(push)
#pragma pack(1)
struct IPCMemoryInfo struct IPCMemoryInfo
{ {
uint8_t airIoStatus[6]; uint8_t airIoStatus[6];
@ -76,4 +79,6 @@ struct PacketPing
uint64_t remotePingTime; uint64_t remotePingTime;
}; };
#pragma pack(pop)
#endif // STRUCT_H_INCLUDED #endif // STRUCT_H_INCLUDED