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 ff2dfdb..d1cbf8c 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 52ea009..0958692 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 f417616..02628bf 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();
                }
        }
 }