From: Steinar H. Gunderson Date: Fri, 4 Feb 2005 01:52:18 +0000 (+0000) Subject: Send SDIN and not SDRQ, and we can send bitmap updates! X-Git-Url: https://git.sesse.net/?p=rdpsrv;a=commitdiff_plain;h=b4491f06537d42359e0675c45e44f04f7bd09281 Send SDIN and not SDRQ, and we can send bitmap updates! --- diff --git a/mcs.c b/mcs.c index ff2dfdb..d1cbf8c 100644 --- a/mcs.c +++ b/mcs.c @@ -288,7 +288,7 @@ mcs_send_to_channel(STREAM s, uint16 channel) length = s->end - s->p - 8; length |= 0x8000; - out_uint8(s, (MCS_SDRQ << 2)); + out_uint8(s, (MCS_SDIN << 2)); out_uint16_be(s, g_mcs_userid); out_uint16_be(s, channel); out_uint8(s, 0x70); /* flags */ diff --git a/rdp.c b/rdp.c index 52ea009..0958692 100644 --- a/rdp.c +++ b/rdp.c @@ -180,7 +180,7 @@ void rdp_send_bitmap_update(void) out_uint8(s, 255); out_uint8(s, 255); out_uint8(s, 255); - + s_mark_end(s); rdp_send_data(s, RDP_DATA_PDU_UPDATE); } diff --git a/rdpsrv.c b/rdpsrv.c index f417616..02628bf 100644 --- a/rdpsrv.c +++ b/rdpsrv.c @@ -82,12 +82,11 @@ int serve_client() switch (data_pdu_type) { case RDP_DATA_PDU_INPUT: printf("Input PDU\n"); + rdp_send_bitmap_update(); break; default: printf("Unknown data PDU type %u\n", data_pdu_type); }; - -// rdp_send_bitmap_update(); } } }