X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=rdp.c;h=111f37bc5ad0f9f6a82622aefde87f58f4fc4cb5;hb=ebfc5fd4591ac6da73078e975e350825ed16ab99;hp=bcb1bd8c05f445b20b0441ce02d0a040e765603a;hpb=1b88121b3e37f01bd226aa54f65f413f5d1fe49e;p=rdpsrv diff --git a/rdp.c b/rdp.c index bcb1bd8..111f37b 100644 --- a/rdp.c +++ b/rdp.c @@ -287,7 +287,7 @@ rdp_get_logon_info(STREAM s) } /* Send a control PDU */ -static void +void rdp_send_control(uint16 action) { STREAM s; @@ -303,15 +303,15 @@ rdp_send_control(uint16 action) } /* Send a synchronisation PDU */ -static void -rdp_send_synchronise(void) +void +rdp_send_synchronise(uint16 id) { 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);