[client,cmdline] fix rdp2tcp parsing

allow command lines without this channel to succeed as well.
This commit is contained in:
akallabeth
2025-03-20 17:45:09 +01:00
parent 74660456f6
commit 4fcc44fe72

View File

@@ -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 */