From 86770359898f03b0c94bd35538c3e86ed203fc4c Mon Sep 17 00:00:00 2001 From: Marek Roszko Date: Sat, 2 Jan 2021 16:18:10 -0500 Subject: [PATCH] libcontext: Call exit instead of random memory address on MSW x86_64 cherrypick of 580293c7fa05c14b52ad0e5445790cb3e6a4c8fb See #6820 --- common/system/libcontext.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/system/libcontext.cpp b/common/system/libcontext.cpp index e17fadea18..3dfa1a58ee 100644 --- a/common/system/libcontext.cpp +++ b/common/system/libcontext.cpp @@ -249,7 +249,7 @@ __asm ( "retq\n" "finish:\n" "xor %rcx,%rcx\n" -"callq 0x63\n" +"callq _exit\n" "hlt\n" " .seh_endproc\n" ".def _exit; .scl 2; .type 32; .endef \n"