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:
matt335672 2021-12-02 11:18:13 +00:00 committed by GitHub
commit b557de4888
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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);