Set stream size correctly before adding TS_SURFCMD_STREAM_SURF_BITS header

This commit is contained in:
matt335672 2021-11-30 11:04:57 +00:00
parent 3b24ecdedf
commit f64c824a78
1 changed files with 1 additions and 0 deletions

View File

@ -1673,6 +1673,7 @@ libxrdp_fastpath_send_surface(struct xrdp_session *session,
s->sec_hdr = s->data;
s->rdp_hdr = s->sec_hdr + sec_bytes;
s->end = data_pad + pad_bytes + data_bytes;
s->size = s->end - s->data;
s->p = s->data + (rdp_bytes + sec_bytes);
/* TS_SURFCMD_STREAM_SURF_BITS */
out_uint16_le(s, CMDTYPE_STREAM_SURFACE_BITS);