client: fix channel loading for rdp2tcp
The RDP2Tcp channel has no associated bool in settings for configuring the loading of the channel (only settings->RDP2TCPArgs for the args), so let's load it outside of the big loading loop (prevent a warning for unknown bool setting 1519).
This commit is contained in:
parent
24fc77a073
commit
e266784b24
@ -3629,7 +3629,6 @@ BOOL freerdp_client_load_addins(rdpChannels* channels, rdpSettings* settings)
|
||||
{ FreeRDP_EncomspVirtualChannel, ENCOMSP_SVC_CHANNEL_NAME, settings },
|
||||
#endif
|
||||
{ FreeRDP_RemdeskVirtualChannel, REMDESK_SVC_CHANNEL_NAME, settings },
|
||||
{ FreeRDP_RDP2TCPArgs, RDP2TCP_DVC_CHANNEL_NAME, settings->RDP2TCPArgs },
|
||||
{ FreeRDP_RemoteApplicationMode, RAIL_SVC_CHANNEL_NAME, settings }
|
||||
};
|
||||
size_t i;
|
||||
@ -3856,6 +3855,13 @@ BOOL freerdp_client_load_addins(rdpChannels* channels, rdpSettings* settings)
|
||||
}
|
||||
}
|
||||
|
||||
if (settings->RDP2TCPArgs)
|
||||
{
|
||||
if (!freerdp_client_load_static_channel_addin(channels, settings, RDP2TCP_DVC_CHANNEL_NAME,
|
||||
settings->RDP2TCPArgs))
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
/* step 4: do the static channels loading and init */
|
||||
for (i = 0; i < settings->StaticChannelCount; i++)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user