diff options
author | Max Horn | 2008-09-06 17:00:50 +0000 |
---|---|---|
committer | Max Horn | 2008-09-06 17:00:50 +0000 |
commit | f8bcb0782b5be91966aac37fbf29e1eba235abe3 (patch) | |
tree | e8ce620132010404ada9cac5c05c720ec3f3bc59 /backends | |
parent | 6cb09e311a6c02a5507b252b3b6661350f7cfa95 (diff) | |
download | scummvm-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.cpp | 2 |
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() { |