rdp: fix zgfx decompression
This fixes a decoding error when the packet is not compressed.
This commit is contained in:
parent
dbf5bf27d3
commit
bc40c57b82
|
@ -336,6 +336,9 @@ rdp8_decompress_segment(zgfx_context_t *zgfx, tvbuff_t *tvb)
|
||||||
if (!(flags & ZGX_PACKET_COMPRESSED)) {
|
if (!(flags & ZGX_PACKET_COMPRESSED)) {
|
||||||
tvbuff_t *raw = tvb_new_subset_remaining(tvb, 1);
|
tvbuff_t *raw = tvb_new_subset_remaining(tvb, 1);
|
||||||
zgfx_write_history_buffer_tvb(zgfx, raw, len);
|
zgfx_write_history_buffer_tvb(zgfx, raw, len);
|
||||||
|
|
||||||
|
tvb_memcpy(tvb, zgfx->outputSegment, 1, len);
|
||||||
|
zgfx->outputCount += len;
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue