From 6d8d76a133ac85f82fd324a4e72a96f8c92fb575 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Moreau?= Date: Mon, 8 Aug 2011 15:06:07 -0400 Subject: [PATCH] libfreerdp-core: updated connection sequence for RemoteApp --- libfreerdp-core/capabilities.c | 7 +++++++ libfreerdp-core/info.c | 3 +++ 2 files changed, 10 insertions(+) diff --git a/libfreerdp-core/capabilities.c b/libfreerdp-core/capabilities.c index 09379e270..15c2d1fee 100644 --- a/libfreerdp-core/capabilities.c +++ b/libfreerdp-core/capabilities.c @@ -1584,6 +1584,13 @@ void rdp_write_confirm_active(STREAM* s, rdpSettings* settings) rdp_write_offscreen_bitmap_cache_capability_set(s, settings); } + if (settings->remote_app) + { + numberCapabilities += 2; + rdp_write_remote_programs_capability_set(s, settings); + rdp_write_window_list_capability_set(s, settings); + } + if (settings->received_caps[CAPSET_TYPE_MULTI_FRAGMENT_UPDATE]) { numberCapabilities++; diff --git a/libfreerdp-core/info.c b/libfreerdp-core/info.c index 16a0ef649..b497e685c 100644 --- a/libfreerdp-core/info.c +++ b/libfreerdp-core/info.c @@ -277,6 +277,9 @@ void rdp_write_info_packet(STREAM* s, rdpSettings* settings) if (settings->autologon) flags |= INFO_AUTOLOGON; + if (settings->remote_app) + flags |= INFO_RAIL; + if (settings->console_audio) flags |= INFO_REMOTECONSOLEAUDIO;