[Scummvm-devel] eof & err

Johannes Schickel lordhoto at scummvm.org
Sun Jul 12 21:46:16 CEST 2009


Just checked our ps2_ferror implementation, which calls Ps2File::getErr. 
Seems like Ps2File::getErr returns true on eof, which makes ps2_ferror 
return non zero, which is *wrong*. ferror should only return non-zero on 
an I/O error (that means i.e. from file could not be read, because the 
disc is scratched or the like) instead of eof.

// Johannes




More information about the Scummvm-devel mailing list