rdp: fix zgfx decompression

This fixes a decoding error when the packet is not compressed.
This commit is contained in:
David Fort 2023-01-20 14:35:07 +01:00
parent dbf5bf27d3
commit bc40c57b82
1 changed files with 3 additions and 0 deletions

View File

@ -336,6 +336,9 @@ rdp8_decompress_segment(zgfx_context_t *zgfx, tvbuff_t *tvb)
if (!(flags & ZGX_PACKET_COMPRESSED)) {
tvbuff_t *raw = tvb_new_subset_remaining(tvb, 1);
zgfx_write_history_buffer_tvb(zgfx, raw, len);
tvb_memcpy(tvb, zgfx->outputSegment, 1, len);
zgfx->outputCount += len;
return TRUE;
}