aboutsummaryrefslogtreecommitdiffstats
path: root/extlinux.asm
diff options
context:
space:
mode:
Diffstat (limited to 'extlinux.asm')
-rw-r--r--extlinux.asm4
1 files changed, 3 insertions, 1 deletions
diff --git a/extlinux.asm b/extlinux.asm
index 7d735073..a590a366 100644
--- a/extlinux.asm
+++ b/extlinux.asm
@@ -1039,8 +1039,10 @@ ThisInode resb EXT2_GOOD_OLD_INODE_SIZE ; The most recently opened inode
; Assumes CS == DS.
;
close_file:
+ and si,si
+ jz .closed
mov dword [si],0 ; First dword == file_left
- ret
+.closed: ret
;
; searchdir: