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:
parent
96abaaea6d
commit
6b98c4c4e7
5 changed files with 20 additions and 11 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue