Merge pull request #4742 from mfleisz/fix_wave2

rdpsnd: Fix sending of wave2 PDU
This commit is contained in:
Martin Fleisz 2018-07-11 15:41:05 +02:00 committed by GitHub
commit 4d0876fcc2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -507,7 +507,7 @@ static UINT rdpsnd_server_send_wave2_pdu(RdpsndServerContext* context,
/* Set stream size */
end = Stream_GetPosition(s);
Stream_SetPosition(s, 2);
Stream_Write_UINT16(s, end);
Stream_Write_UINT16(s, end - 4);
Stream_SetPosition(s, end);
Stream_SealLength(s);
context->block_no = (context->block_no + 1) % 256;