I can confirm it's the correct fix; pragma pack does in fact change the expected alignment of the whole struct.