Fixed history buffer reset.
This commit is contained in:
parent
a71c96d86f
commit
6e59d9597c
@ -772,11 +772,15 @@ void mppc_context_reset(MPPC_CONTEXT* mppc, BOOL flush)
|
||||
ZeroMemory(&(mppc->MatchBuffer), sizeof(mppc->MatchBuffer));
|
||||
|
||||
if (flush)
|
||||
{
|
||||
mppc->HistoryOffset = mppc->HistoryBufferSize + 1;
|
||||
mppc->HistoryPtr = mppc->HistoryBuffer;
|
||||
}
|
||||
else
|
||||
{
|
||||
mppc->HistoryOffset = 0;
|
||||
|
||||
mppc->HistoryPtr = &(mppc->HistoryBuffer[mppc->HistoryOffset]);
|
||||
}
|
||||
}
|
||||
|
||||
MPPC_CONTEXT* mppc_context_new(DWORD CompressionLevel, BOOL Compressor)
|
||||
|
Loading…
Reference in New Issue
Block a user