[PATCH] ntdll: Fix stack adjustment condition in call_user_exception_dispatcher on x86_64.

Paul Gofman pgofman at codeweavers.com
Thu Jul 9 11:31:58 CDT 2020


Signed-off-by: Paul Gofman <pgofman at codeweavers.com>
---
 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 6e103a78fb5..f2d1c503494 100644
--- a/dlls/ntdll/unix/signal_x86_64.c
+++ b/dlls/ntdll/unix/signal_x86_64.c
@@ -1990,7 +1990,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")
 
-- 
2.26.2




More information about the wine-devel mailing list