aboutsummaryrefslogtreecommitdiff
path: root/backends
diff options
context:
space:
mode:
authorMax Horn2008-09-06 17:00:50 +0000
committerMax Horn2008-09-06 17:00:50 +0000
commitf8bcb0782b5be91966aac37fbf29e1eba235abe3 (patch)
treee8ce620132010404ada9cac5c05c720ec3f3bc59 /backends
parent6cb09e311a6c02a5507b252b3b6661350f7cfa95 (diff)
downloadscummvm-rg350-f8bcb0782b5be91966aac37fbf29e1eba235abe3.tar.gz
scummvm-rg350-f8bcb0782b5be91966aac37fbf29e1eba235abe3.tar.bz2
scummvm-rg350-f8bcb0782b5be91966aac37fbf29e1eba235abe3.zip
Unlike ferror, our Stream::ioFailed() is also supposed to return true when the end of stream has been reached
svn-id: r34385
Diffstat (limited to 'backends')
-rw-r--r--backends/fs/stdiostream.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/backends/fs/stdiostream.cpp b/backends/fs/stdiostream.cpp
index f2d0d30164..7faeaf1167 100644
--- a/backends/fs/stdiostream.cpp
+++ b/backends/fs/stdiostream.cpp
@@ -146,7 +146,7 @@ StdioStream::~StdioStream() {
}
bool StdioStream::ioFailed() const {
- return ferror((FILE *)_handle) != 0;
+ return eos() || ferror((FILE *)_handle) != 0;
}
void StdioStream::clearIOFailed() {