=?UTF-8?Q?Andr=C3=A9=20Hentschel=20?=: ntdll: Fix stack alignment on ARM64.

Alexandre Julliard julliard at wine.codeweavers.com
Wed Aug 12 09:17:54 CDT 2015


Module: wine
Branch: master
Commit: ccc91f25c646fae7e9e16c3c068292798b0f0c94
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=ccc91f25c646fae7e9e16c3c068292798b0f0c94

Author: André Hentschel <nerv at dawncrow.de>
Date:   Mon Aug 10 19:49:45 2015 +0200

ntdll: Fix stack alignment on ARM64.

---

 dlls/ntdll/signal_arm64.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/ntdll/signal_arm64.c b/dlls/ntdll/signal_arm64.c
index bd91d81..3a41c84 100644
--- a/dlls/ntdll/signal_arm64.c
+++ b/dlls/ntdll/signal_arm64.c
@@ -344,7 +344,7 @@ static EXCEPTION_RECORD *setup_exception( ucontext_t *sigcontext, raise_func fun
     } *stack;
     DWORD exception_code = 0;
 
-    stack = (struct stack_layout *)(SP_sig(sigcontext) & ~3);
+    stack = (struct stack_layout *)(SP_sig(sigcontext) & ~15);
     stack--;  /* push the stack_layout structure */
 
     stack->rec.ExceptionRecord  = NULL;




More information about the wine-cvs mailing list