From a064c7caa69416f09ca9d3ac86f2a0e9f8832ff4 Mon Sep 17 00:00:00 2001 From: Pawel Jakub Dawidek Date: Fri, 6 Apr 2012 20:55:51 +0200 Subject: [PATCH] Set user_id in a way that matches Windows behaviour. --- libfreerdp-core/mcs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libfreerdp-core/mcs.c b/libfreerdp-core/mcs.c index b2524c6c1..79ea2ac7b 100644 --- a/libfreerdp-core/mcs.c +++ b/libfreerdp-core/mcs.c @@ -671,7 +671,7 @@ boolean mcs_send_attach_user_confirm(rdpMcs* mcs) mcs_write_domain_mcspdu_header(s, DomainMCSPDU_AttachUserConfirm, length, 2); per_write_enumerated(s, 0, MCS_Result_enum_length); /* result */ - mcs->user_id = 1002; + mcs->user_id = MCS_GLOBAL_CHANNEL_ID + 1 + mcs->transport->settings->num_channels; per_write_integer16(s, mcs->user_id, MCS_BASE_CHANNEL_ID); /* initiator (UserId) */ transport_write(mcs->transport, s);