mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-12 18:27:24 +01:00
Fix very small files in ttmps not extracting correctly.
This commit is contained in:
parent
6882e03c82
commit
61be374b67
1 changed files with 1 additions and 2 deletions
|
|
@ -333,13 +333,12 @@ namespace Penumbra.Util
|
|||
return blockHeader.UncompressedSize;
|
||||
}
|
||||
|
||||
var data = Reader.ReadBytes( ( int )blockHeader.UncompressedSize );
|
||||
var data = Reader.ReadBytes( ( int )blockHeader.CompressedSize );
|
||||
|
||||
using( var compressedStream = new MemoryStream( data ) )
|
||||
{
|
||||
using var zlibStream = new DeflateStream( compressedStream, CompressionMode.Decompress );
|
||||
zlibStream.CopyTo( dest );
|
||||
zlibStream.Close();
|
||||
}
|
||||
|
||||
if( resetPosition )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue