Make it safe to call close_file on an already closed file. syslinux-3.50-pre15
authorH. Peter Anvin <hpa@zytor.com>
Wed, 23 May 2007 06:27:46 +0000 (23:27 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Wed, 23 May 2007 06:27:46 +0000 (23:27 -0700)
commitb901a125510486e190dd841dfa616cafff0c9242
treee0fe9893d5f3dc204b72509e70add30d414e2107
parent1e7084a905560314d7a30b7826d77783f4d3740e
Make it safe to call close_file on an already closed file.

The SYSLINUX internal API closes a file automatically upon reading
to block EOF (not necessarily file EOF!)  Thus, it's fairly likely
we'll get SI == 0 (closed file) passed to close_file at some point
or another.

Just plain admit it, and make close_file accept SI == 0 by spec.
comboot.inc
extlinux.asm
getc.inc
isolinux.asm
ldlinux.asm
pxelinux.asm