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:
parent
6b420b191a
commit
580293c7fa
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue