ntdll: Add padding to the stack structure for quad-word alignment on ARM64

André Hentschel nerv at dawncrow.de
Sat Jul 22 07:48:32 CDT 2017


EXCEPTION_RECORD is not correctly aligned and until bd1f7ef1868dd563a82eacd1bf414bf8d1a7254e, CONTEXT wasn't either,
which ended up in a correctly aligned structure, but the mentioned commit changed that.

Signed-off-by: André Hentschel <nerv at dawncrow.de>
---
 dlls/ntdll/signal_arm64.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dlls/ntdll/signal_arm64.c b/dlls/ntdll/signal_arm64.c
index 3a51567..6b7b02d 100644
--- a/dlls/ntdll/signal_arm64.c
+++ b/dlls/ntdll/signal_arm64.c
@@ -383,6 +383,7 @@ static EXCEPTION_RECORD *setup_exception( ucontext_t *sigcontext, raise_func fun
     {
         CONTEXT           context;
         EXCEPTION_RECORD  rec;
+        ULONGLONG         pad;
     } *stack;
     DWORD exception_code = 0;
 
-- 
2.7.4




More information about the wine-patches mailing list