mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-14 00:14:11 +09:00
[client,cmdline] fix rdp2tcp parsing
allow command lines without this channel to succeed as well.
This commit is contained in:
@@ -6144,9 +6144,12 @@ BOOL freerdp_client_load_addins(rdpChannels* channels, rdpSettings* settings)
|
||||
|
||||
{
|
||||
char* RDP2TCPArgs = freerdp_settings_get_string_writable(settings, FreeRDP_RDP2TCPArgs);
|
||||
const char* const p[] = { RDP2TCP_DVC_CHANNEL_NAME, RDP2TCPArgs };
|
||||
if (!freerdp_client_add_static_channel(settings, ARRAYSIZE(p), p))
|
||||
return FALSE;
|
||||
if (RDP2TCPArgs)
|
||||
{
|
||||
const char* const p[] = { RDP2TCP_DVC_CHANNEL_NAME, RDP2TCPArgs };
|
||||
if (!freerdp_client_add_static_channel(settings, ARRAYSIZE(p), p))
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
|
||||
/* step 4: do the static channels loading and init */
|
||||
|
||||
Reference in New Issue
Block a user