From: H. Peter Anvin Date: Mon, 23 Jun 2008 04:25:44 +0000 (-0700) Subject: extlinux: actually fix the closing of a file on EOF X-Git-Tag: syslinux-3.70-pre22 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Ftags%2Fsyslinux-3.70-pre22;p=platform%2Fupstream%2Fsyslinux.git extlinux: actually fix the closing of a file on EOF Actually close the file properly on EOF, even if not aligned to a sector boundary. Sigh. --- diff --git a/core/extlinux.asm b/core/extlinux.asm index 838f718..b0a8240 100644 --- a/core/extlinux.asm +++ b/core/extlinux.asm @@ -1506,8 +1506,7 @@ getfssec: sub [si+file_bytesleft],ecx jnbe .noteof ; CF=0 in this case add ecx,[si+file_bytesleft] ; Actual number of bytes left - sub [si+file_bytesleft],ecx ; ... all read - xor si,si ; File closed + call close_file stc ; We hit EOF .noteof: pop edi