Merge pull request #14788 from phire/mach_msg_alignment

Mach exception thread: Fix msg alignment
This commit is contained in:
Admiral H. Curtiss
2026-08-03 16:04:47 +02:00
committed by GitHub
+2 -2
View File
@@ -134,7 +134,7 @@ static void ExceptionThread(mach_port_t port)
{ {
Common::SetCurrentThreadName("Mach exception thread"); Common::SetCurrentThreadName("Mach exception thread");
#pragma pack(4) #pragma pack(4)
struct struct alignas(8)
{ {
mach_msg_header_t Head; mach_msg_header_t Head;
NDR_record_t NDR; NDR_record_t NDR;
@@ -147,7 +147,7 @@ static void ExceptionThread(mach_port_t port)
mach_msg_trailer_t trailer; mach_msg_trailer_t trailer;
} msg_in; } msg_in;
struct struct alignas(8)
{ {
mach_msg_header_t Head; mach_msg_header_t Head;
NDR_record_t NDR; NDR_record_t NDR;