]> git.sesse.net Git - rdpsrv/commitdiff
Send SDIN and not SDRQ, and we can send bitmap updates!
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Fri, 4 Feb 2005 01:52:18 +0000 (01:52 +0000)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Fri, 4 Feb 2005 01:52:18 +0000 (01:52 +0000)
mcs.c
rdp.c
rdpsrv.c

diff --git a/mcs.c b/mcs.c
index ff2dfdb0cfe6ed1a13b79d481b281eda5d77f862..d1cbf8c004be9ab4198d71a0cb0f684dc517392f 100644 (file)
--- 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 52ea0093ea48b073d63590c9206fd51ef6c877d6..09586920ba6bd1ed556dc132bf69620c4221314c 100644 (file)
--- 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);
 }
index f417616724d502081eda6352e82c2721159dc318..02628bf66568fe3230d2d465cef9856181f4c765 100644 (file)
--- 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();
                }
        }
 }