libcontext: Call exit instead of random memory address on MSW x86_64

The original call would jump to a meaningless low address on error,
but the upstream Boost context and 32bit version of this function
call exit to properly terminate the code when this error occurs.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/6820
This commit is contained in:
Ian McInerney 2020-12-23 23:40:56 +00:00
parent 6b420b191a
commit 580293c7fa
1 changed files with 1 additions and 1 deletions

View File

@ -251,7 +251,7 @@ __asm (
"retq\n"
"finish:\n"
"xor %rcx,%rcx\n"
"callq 0x63\n"
"call _exit\n"
"hlt\n"
" .seh_endproc\n"
".def _exit; .scl 2; .type 32; .endef \n"