projects
/
platform
/
upstream
/
freerdp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a581293
)
Fixed history buffer reset.
author
akallabeth
<akallabeth@posteo.net>
Mon, 18 May 2020 07:30:59 +0000
(09:30 +0200)
committer
akallabeth
<akallabeth@posteo.net>
Mon, 18 May 2020 15:10:01 +0000
(17:10 +0200)
(cherry picked from commit
ccc9cbef2d5d0d9f5cf5ec7621f71bed33f41aba
)
libfreerdp/codec/mppc.c
patch
|
blob
|
history
diff --git
a/libfreerdp/codec/mppc.c
b/libfreerdp/codec/mppc.c
index
cdad248
..
217fae4
100644
(file)
--- a/
libfreerdp/codec/mppc.c
+++ b/
libfreerdp/codec/mppc.c
@@
-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)