Skip to content

Commit 5062eca

Browse files
Oops
1 parent 76c6620 commit 5062eca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CEdev/lib/src/std/shared/exit.asm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ _exit:
4747
ld de,_already_in_atexit
4848
ld a,(de)
4949
or a,a
50-
ret nz ; check to see if some idiot called exit()
50+
jp nz,__exit ; check to see if some idiot called exit()
5151
inc a
5252
ld (de),a
5353
push hl
@@ -68,4 +68,4 @@ _lexit: ld hl,___atexit_registered
6868
jr _lexit
6969

7070
_end: pop hl
71-
ret
71+
jp __exit

0 commit comments

Comments
 (0)