mirror of https://github.com/neutrinolabs/xrdp
Merge pull request #2066 from matt335672/devel_fix
Set stream size correctly for TS_SURFCMD_STREAM_SURF_BITS header (#2066)
This commit is contained in:
commit
b557de4888
|
@ -1673,6 +1673,7 @@ libxrdp_fastpath_send_surface(struct xrdp_session *session,
|
||||||
s->sec_hdr = s->data;
|
s->sec_hdr = s->data;
|
||||||
s->rdp_hdr = s->sec_hdr + sec_bytes;
|
s->rdp_hdr = s->sec_hdr + sec_bytes;
|
||||||
s->end = data_pad + pad_bytes + data_bytes;
|
s->end = data_pad + pad_bytes + data_bytes;
|
||||||
|
s->size = s->end - s->data;
|
||||||
s->p = s->data + (rdp_bytes + sec_bytes);
|
s->p = s->data + (rdp_bytes + sec_bytes);
|
||||||
/* TS_SURFCMD_STREAM_SURF_BITS */
|
/* TS_SURFCMD_STREAM_SURF_BITS */
|
||||||
out_uint16_le(s, CMDTYPE_STREAM_SURFACE_BITS);
|
out_uint16_le(s, CMDTYPE_STREAM_SURFACE_BITS);
|
||||||
|
|
Loading…
Reference in New Issue