[Scummvm-cvs-logs] SF.net SVN: scummvm: [27062] scummvm/trunk/backends/saves/compressed/ compressed-saves.cpp
eriktorbjorn at users.sourceforge.net
eriktorbjorn at users.sourceforge.net
Sun Jun 3 16:14:52 CEST 2007
Revision: 27062
http://scummvm.svn.sourceforge.net/scummvm/?rev=27062&view=rev
Author: eriktorbjorn
Date: 2007-06-03 07:14:51 -0700 (Sun, 03 Jun 2007)
Log Message:
-----------
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.
Modified Paths:
--------------
scummvm/trunk/backends/saves/compressed/compressed-saves.cpp
Modified: scummvm/trunk/backends/saves/compressed/compressed-saves.cpp
===================================================================
--- scummvm/trunk/backends/saves/compressed/compressed-saves.cpp 2007-06-03 08:11:19 UTC (rev 27061)
+++ scummvm/trunk/backends/saves/compressed/compressed-saves.cpp 2007-06-03 14:14:51 UTC (rev 27062)
@@ -183,7 +183,7 @@
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 @@
_stream.next_out = _buf;
_stream.avail_out = BUFSIZE;
+ _stream.avail_in = 0;
}
~CompressedOutSaveFile() {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list