diff options
author | Torbjörn Andersson | 2007-06-03 14:14:51 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2007-06-03 14:14:51 +0000 |
commit | a5f34ae1da559b8733b478d24c9c684d4684c931 (patch) | |
tree | c60691bc9e649e1a537289e16685f439fa01cc11 /backends/saves/compressed | |
parent | 09ae91b118938bf92ff0c6ee84f4f07fa1974142 (diff) | |
download | scummvm-rg350-a5f34ae1da559b8733b478d24c9c684d4684c931.tar.gz scummvm-rg350-a5f34ae1da559b8733b478d24c9c684d4684c931.tar.bz2 scummvm-rg350-a5f34ae1da559b8733b478d24c9c684d4684c931.zip |
Initialized _stream.avail_in (and fixed a typo in a comment) after discussing
with Fingolfin. This seems to fix the mysterious bug #1726120, though I'll need
to test that a bit more before closing it.
svn-id: r27062
Diffstat (limited to 'backends/saves/compressed')
-rw-r--r-- | backends/saves/compressed/compressed-saves.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/backends/saves/compressed/compressed-saves.cpp b/backends/saves/compressed/compressed-saves.cpp index 83c33fdae5..2adae229f5 100644 --- a/backends/saves/compressed/compressed-saves.cpp +++ b/backends/saves/compressed/compressed-saves.cpp @@ -183,7 +183,7 @@ protected: int _zlibErr; void processData(int flushType) { - // This function is called by both write() and finalize. + // This function is called by both write() and finalize(). while (_zlibErr == Z_OK && (_stream.avail_in || flushType == Z_FINISH)) { if (_stream.avail_out == 0) { if (_wrapped->write(_buf, BUFSIZE) != BUFSIZE) { @@ -218,6 +218,7 @@ public: _stream.next_out = _buf; _stream.avail_out = BUFSIZE; + _stream.avail_in = 0; } ~CompressedOutSaveFile() { |