aboutsummaryrefslogtreecommitdiffstats
path: root/ldlinux.asm
diff options
context:
space:
mode:
Diffstat (limited to 'ldlinux.asm')
-rw-r--r--ldlinux.asm4
1 files changed, 3 insertions, 1 deletions
diff --git a/ldlinux.asm b/ldlinux.asm
index 7d7b8f23..eed29519 100644
--- a/ldlinux.asm
+++ b/ldlinux.asm
@@ -1065,8 +1065,10 @@ search_dos_dir:
; Assumes CS == DS.
;
close_file:
+ and si,si
+ jz .closed
mov dword [si],0 ; First dword == file_left
- ret
+.closed: ret
;
; searchdir: