Skip to content

Commit

Permalink
Fix for issue #16 applied to lzma decoder.
Browse files Browse the repository at this point in the history
  • Loading branch information
weltkante committed Jul 18, 2016
1 parent 993b088 commit f1769a6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions shared/Compression/Lzma/Decoder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,10 @@ public int Decode(byte[] buffer, int offset, int length, int? limit, bool eof)
var mode = eof ? Master.LZMA.ELzmaFinishMode.LZMA_FINISH_END : Master.LZMA.ELzmaFinishMode.LZMA_FINISH_ANY;

if (mDecoderPosition == mDecoder.mDicBufSize)
{
mDecoder.mDicPos = 0;
mDecoderPosition = 0;
}

long outputLimit = mDecoder.mDicBufSize;
if (limit.HasValue)
Expand Down

0 comments on commit f1769a6

Please sign in to comment.