This commit is contained in:
yhirose 2019-11-27 12:54:01 -05:00
parent 8f3dbf7f21
commit 880f7fa62b
2 changed files with 16 additions and 1 deletions

View file

@ -1475,7 +1475,7 @@ public:
if (!callback(buff.data(), buff.size() - strm.avail_out)) { return false; }
} while (strm.avail_out == 0);
return ret == Z_STREAM_END;
return ret == Z_OK || ret == Z_STREAM_END;
}
private: