mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-12-18 16:37:48 +00:00
fix: make sure to stop inflating when Z_STREAM_END is encountered
This commit is contained in:
@@ -61,6 +61,8 @@ namespace
|
|||||||
|
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
throw InvalidCompressionException();
|
throw InvalidCompressionException();
|
||||||
|
if (ret == Z_STREAM_END)
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
return length - m_stream.avail_out;
|
return length - m_stream.avail_out;
|
||||||
|
|||||||
Reference in New Issue
Block a user