diff options
| author | H. Peter Anvin <hpa@zytor.com> | 2008-02-27 16:17:23 -0800 |
|---|---|---|
| committer | H. Peter Anvin <hpa@zytor.com> | 2008-02-27 16:17:23 -0800 |
| commit | b89d1480c656a4f4642cb84ed18d9214faca1308 (patch) | |
| tree | 248e3cb35062f518635faede223ee5d178a9c487 /extlinux.asm | |
| parent | 173ac73758fde865cfb374d27411439629e09b75 (diff) | |
| download | syslinux-3.70-pre2.tar.gz | |
Tighten close_file, fix SYSLINUX new file APIsyslinux-3.70-pre2
Define close_file slightly tighter:
- It is permitted to call close_file with a zero filehandle
- close_file zeros SI
Fix the handling of the new API in SYSLINUX. It appears file_left was
never actually initialized; it simply didn't matter since the old code
would either trip on reaching the end of the FAT chain or count the
data it needed. Now operating according to spec.
Diffstat (limited to 'extlinux.asm')
| -rw-r--r-- | extlinux.asm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/extlinux.asm b/extlinux.asm index afcdb334..73c8bed5 100644 --- a/extlinux.asm +++ b/extlinux.asm @@ -1010,6 +1010,7 @@ close_file: and si,si jz .closed mov dword [si],0 ; First dword == file_bytesleft + xor si,si .closed: ret ; |
