X-Git-Url: https://git.sesse.net/?p=rdpsrv;a=blobdiff_plain;f=rdp.c;fp=rdp.c;h=dc32fc298085a954b25c1bbd9f81ee33a69d1479;hp=111f37bc5ad0f9f6a82622aefde87f58f4fc4cb5;hb=634d61e2e7f380a8c695cc49323f975393b604c8;hpb=e61b2ca4693510c74cb5c8e90e8a53522cbc9219 diff --git a/rdp.c b/rdp.c index 111f37b..dc32fc2 100644 --- a/rdp.c +++ b/rdp.c @@ -152,10 +152,13 @@ void rdp_send_bitmap_update(unsigned x, unsigned y, unsigned width, unsigned hei { STREAM s; - int length = 10*2 + width*height*3 + 5; + int length = 10*2 + width*height*3 + 5 + 3; s = rdp5_init(length, 1); + out_uint8(s, 3); // ?? + out_uint16_le(s, 0); // length + out_uint8(s, 1); // process bitmap update out_uint16_le(s, 10*2 + width*height*3 + 2); // RDP5 chunk length out_uint16_le(s, 10*2 + width*height*3); // part length