Got rid of some more ioFailed uses (also fixed a potential leak in graphics/font.cpp, and handle eos correctly in the FLAC code)

svn-id: r42488
This commit is contained in:
Max Horn 2009-07-14 18:24:20 +00:00
parent 96abaaea6d
commit 6b98c4c4e7
5 changed files with 20 additions and 11 deletions

View file

@ -126,7 +126,7 @@ KyraEngine_v1::kReadSaveHeaderError KyraEngine_v1::readSaveHeader(Common::Seekab
}
}
return (in->ioFailed() ? kRSHEIoError : kRSHENoError);
return ((in->err() || in->eos()) ? kRSHEIoError : kRSHENoError);
}
Common::SeekableReadStream *KyraEngine_v1::openSaveForReading(const char *filename, SaveHeader &header) {