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