Fully fix LZX

This commit is contained in:
Matt Nadareski
2022-05-25 23:52:26 -07:00
parent c913b10286
commit 76ca87f7a9
2 changed files with 1 additions and 11 deletions

View File

@@ -62,19 +62,9 @@ namespace LibMSPackSharp.Compression
/// </summary>
private Error READ_LENGTHS(byte[] lengths, uint first, uint last)
{
int i_ptr = InputPointer;
int i_end = InputEnd;
uint bit_buffer = BitBuffer;
int bits_left = BitsLeft;
if (ReadLens(lengths, first, last) != Error.MSPACK_ERR_OK)
return Error;
InputPointer = i_ptr;
InputEnd = i_end;
BitBuffer = bit_buffer;
BitsLeft = bits_left;
return Error = Error.MSPACK_ERR_OK;
}