Skip to content

Commit 0bda45f

Browse files
committed
Fix crash when following dead symlinks
1 parent 2afadf6 commit 0bda45f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/00/filestreams.asm

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ followSymLink:
3232
3333
ld de, newName
3434
call findNode
35-
ret nz
35+
jr nz, .not_found
3636

3737
setBankA
3838
ld a, (hl)
@@ -41,6 +41,7 @@ followSymLink:
4141
jr z, .recurse
4242

4343
cp a
44+
.not_found:
4445
pop de
4546
ret
4647
#undefine newName

0 commit comments

Comments
 (0)