From c1f0adebe6420420cd85403a2ea53afbbaaaa83b Mon Sep 17 00:00:00 2001 From: Jens Steube Date: Tue, 7 Feb 2017 11:19:09 +0100 Subject: [PATCH] Force #pragma pack(1) for struct hccapx --- include/interface.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/interface.h b/include/interface.h index 85c79394b..338ee68f3 100644 --- a/include/interface.h +++ b/include/interface.h @@ -812,6 +812,9 @@ typedef struct struct_psafe2_hdr #define HCCAPX_SIGNATURE 0x58504348 // HCPX +// this is required to force mingw to accept the packed attribute +#pragma pack(push,1) + struct hccapx { u32 signature; @@ -832,6 +835,8 @@ struct hccapx typedef struct hccapx hccapx_t; +#pragma pack(pop) + /** * hashtypes enums */