Paul Gofman : ntdll: Fix stack adjustment condition in call_user_exception_dispatcher on x86_64.

Alexandre Julliard julliard at winehq.org
Thu Jul 9 17:10:39 CDT 2020


Module: wine
Branch: master
Commit: 095b0f5acc225ab79db2406d42686b8c51b4d887
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=095b0f5acc225ab79db2406d42686b8c51b4d887

Author: Paul Gofman <pgofman at codeweavers.com>
Date:   Thu Jul  9 19:31:58 2020 +0300

ntdll: Fix stack adjustment condition in call_user_exception_dispatcher on x86_64.

Signed-off-by: Paul Gofman <pgofman at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

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

diff --git a/dlls/ntdll/unix/signal_x86_64.c b/dlls/ntdll/unix/signal_x86_64.c
index eed622851f..a2240900ab 100644
--- a/dlls/ntdll/unix/signal_x86_64.c
+++ b/dlls/ntdll/unix/signal_x86_64.c
@@ -2003,7 +2003,7 @@ __ASM_GLOBAL_FUNC( call_user_exception_dispatcher,
                    "movq 0x98(%rdx),%r9\n\t" /* context->Rsp */
                    "andq $~0xf,%r9\n\t"
                    "subq $0x630,%r9\n\t" /* sizeof(struct stack_layout) */
-                   "cmpq %r9,%rsp\n\t"
+                   "cmpq %rsp,%r9\n\t"
                    "cmovbq %r9,%rsp\n\t"
                    "jmp " __ASM_NAME("do_call_user_exception_dispatcher") "\n\t")
 




More information about the wine-cvs mailing list