]> git.sesse.net Git - rdpsrv/blobdiff - rdp.c
Send the same value back in synchronise.
[rdpsrv] / rdp.c
diff --git a/rdp.c b/rdp.c
index 49ff6a9722394fee3cb0f3cc3a7fe1787dd26a54..111f37bc5ad0f9f6a82622aefde87f58f4fc4cb5 100644 (file)
--- a/rdp.c
+++ b/rdp.c
@@ -304,14 +304,14 @@ rdp_send_control(uint16 action)
 
 /* Send a synchronisation PDU */
 void
 
 /* Send a synchronisation PDU */
 void
-rdp_send_synchronise(void)
+rdp_send_synchronise(uint16 id)
 {
        STREAM s;
 
        s = rdp_init_data(4);
 
        out_uint16_le(s, 1);    /* type */
 {
        STREAM s;
 
        s = rdp_init_data(4);
 
        out_uint16_le(s, 1);    /* type */
-       out_uint16_le(s, 1002);
+       out_uint16_le(s, id);
 
        s_mark_end(s);
        rdp_send_data(s, RDP_DATA_PDU_SYNCHRONISE);
 
        s_mark_end(s);
        rdp_send_data(s, RDP_DATA_PDU_SYNCHRONISE);