From 1ecd60e90dc478e04cf910ad9f6aefa035134b21 Mon Sep 17 00:00:00 2001 From: Rika Ichinose Date: Fri, 13 Sep 2024 15:46:34 +0300 Subject: [PATCH] Align Win64 CONTEXT to 16 bytes. --- rtl/win/wininc/struct.inc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/rtl/win/wininc/struct.inc b/rtl/win/wininc/struct.inc index d545273258..2190d10572 100644 --- a/rtl/win/wininc/struct.inc +++ b/rtl/win/wininc/struct.inc @@ -1117,12 +1117,11 @@ Const // //typedef struct DECLSPEC_ALIGN(16) _M128A { -{$note todo, fix alignment } type M128A = record Low: ULONGLONG; High: LONGLONG; - end; + end {$ifndef VER3_2} align 16 {$endif}; // Also implicitly aligns CONTEXT to 16 bytes as required. _M128A = M128A; TM128A = M128A; PM128A = ^TM128A; @@ -1192,7 +1191,6 @@ Const // //typedef struct DECLSPEC_ALIGN(16) _CONTEXT { -{$note todo, fix alignment } type CONTEXT = record