mirror of
https://github.com/SabreTools/BinaryObjectScanner.git
synced 2026-02-17 21:47:52 +00:00
Fully fix LZX
This commit is contained in:
@@ -632,7 +632,7 @@ namespace LibMSPackSharp.CAB
|
||||
{
|
||||
State.Offset += (uint)bytes;
|
||||
if (State.OutputFileHandle != null)
|
||||
return System.Write(State.OutputFileHandle, buffer, pointer, bytes);
|
||||
return SystemImpl.DefaultSystem.Write(State.OutputFileHandle, buffer, pointer, bytes);
|
||||
|
||||
return bytes;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user