diff options
author | Max Horn | 2007-02-19 08:48:54 +0000 |
---|---|---|
committer | Max Horn | 2007-02-19 08:48:54 +0000 |
commit | 2b3c08d420ceb36c22f37de261aa0607a71301a4 (patch) | |
tree | 108d7f779c0194c4c9720825cd2acfeb5df27378 | |
parent | edd87748362036c64d26b45662a3cb07496774f7 (diff) | |
download | scummvm-rg350-2b3c08d420ceb36c22f37de261aa0607a71301a4.tar.gz scummvm-rg350-2b3c08d420ceb36c22f37de261aa0607a71301a4.tar.bz2 scummvm-rg350-2b3c08d420ceb36c22f37de261aa0607a71301a4.zip |
Don't set ioFailed on EOS
svn-id: r25713
-rw-r--r-- | backends/saves/compressed/compressed-saves.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/backends/saves/compressed/compressed-saves.cpp b/backends/saves/compressed/compressed-saves.cpp index 48b7cfff79..82647062a3 100644 --- a/backends/saves/compressed/compressed-saves.cpp +++ b/backends/saves/compressed/compressed-saves.cpp @@ -91,7 +91,7 @@ public: delete _wrapped; } - bool ioFailed() const { return (_zlibErr != Z_OK); } + bool ioFailed() const { return (_zlibErr != Z_OK) && (_zlibErr != Z_STREAM_END); } void clearIOFailed() { /* errors here are not recoverable! */ } uint32 read(void *dataPtr, uint32 dataSize) { |