mirror of
https://github.com/reactos/reactos.git
synced 2024-09-16 15:51:22 +00:00
longjmp() should return 1 if 0 is passed as return value (0 should only be returned by setjmp)
svn path=/trunk/; revision=16004
This commit is contained in:
parent
402b13b071
commit
3ab6c437cc
|
@ -75,6 +75,10 @@ _longjmp:
|
|||
movl JMPBUF(%esp), %ecx /* User's jmp_buf in %ecx. */
|
||||
|
||||
movl VAL(%esp), %eax /* Second argument is return value. */
|
||||
testl %eax, %eax
|
||||
jnz 0f
|
||||
incl %eax
|
||||
0:
|
||||
/* Save the return address now. */
|
||||
movl (JB_PC*4)(%ecx), %edx
|
||||
/* Restore registers. */
|
||||
|
|
Loading…
Reference in a new issue