Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/Remmina/Remmina.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormsizanoen <msizanoen@qtmlabs.xyz>2023-06-02 18:58:33 +0300
committermsizanoen <msizanoen@qtmlabs.xyz>2023-06-02 18:58:33 +0300
commit1f7141a725352b9ce625ab0500fe788b359cf679 (patch)
tree38b6b5585e5de98e8d054005a8b54e5ff3794a90 /plugins
parent43f7bb376e8c7a510a5806c109985fd6c46bd676 (diff)
plugins/rdp: Ensure output redirection configuration applies to both dynamic and static rdpsnd
Remmina should also set configuration options for the dynamic `rdpsnd` channel if `freerdp_client_add_static_channel` for the static `rdpsnd` succeeds. This aligns the behavior with upstream CLI (at https://github.com/FreeRDP/FreeRDP/blob/d0bf018e951d6b7382053387d53f415f64be2dcf/client/common/cmdline.c#L999-L1003 ).
Diffstat (limited to 'plugins')
-rw-r--r--plugins/rdp/rdp_plugin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/rdp/rdp_plugin.c b/plugins/rdp/rdp_plugin.c
index b700e9eae..5c2a36114 100644
--- a/plugins/rdp/rdp_plugin.c
+++ b/plugins/rdp/rdp_plugin.c
@@ -1841,7 +1841,7 @@ static gboolean remmina_rdp_main(RemminaProtocolWidget *gp)
p = remmina_rdp_CommandLineParseCommaSeparatedValuesEx("rdpsnd", g_strdup(cs), &count);
status = freerdp_client_add_static_channel(rfi->settings, count, p);
- if (status == 0)
+ if (status)
status = freerdp_client_add_dynamic_channel(rfi->settings, count, p);
g_free(p);
}