This commit is contained in:
yhirose 2021-01-27 14:35:32 +00:00
parent ae6cf70bc4
commit 88411a1f52

View file

@ -2484,7 +2484,7 @@ public:
strm_.next_out = reinterpret_cast<Bytef *>(buff.data());
ret = deflate(&strm_, flush);
assert(ret != Z_STREAM_ERROR);
if (ret == Z_STREAM_ERROR) { return false; }
if (!callback(buff.data(), buff.size() - strm_.avail_out)) {
return false;