mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-12-17 16:07: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)
|
||||
throw InvalidCompressionException();
|
||||
if (ret == Z_STREAM_END)
|
||||
break;
|
||||
}
|
||||
|
||||
return length - m_stream.avail_out;
|
||||
|
||||
Reference in New Issue
Block a user