server: proxy: sync cliprdr opening

This commit is contained in:
kubistika 2019-08-19 16:27:58 +03:00 committed by akallabeth
parent d796920f8f
commit d1c5862f54
2 changed files with 3 additions and 1 deletions

View File

@ -128,6 +128,7 @@ void pf_OnChannelDisconnectedEventHandler(void* data,
BOOL pf_server_channels_init(pServerContext* ps)
{
rdpContext* context = (rdpContext*) ps;
rdpContext* client = (rdpContext*) ps->pdata->pc;
proxyConfig* config = ps->pdata->config;
if (context->settings->SupportGraphicsPipeline && config->GFX)
@ -144,6 +145,8 @@ BOOL pf_server_channels_init(pServerContext* ps)
if (config->Clipboard && WTSVirtualChannelManagerIsChannelJoined(ps->vcm, CLIPRDR_SVC_CHANNEL_NAME))
{
client->settings->RedirectClipboard = TRUE;
if (!pf_server_cliprdr_init(ps))
return FALSE;
}

View File

@ -233,7 +233,6 @@ static DWORD WINAPI pf_server_handle_client(LPVOID arg)
pdata->config = client->ContextExtra;
config = pdata->config;
client->settings->UseMultimon = TRUE;
client->settings->RedirectClipboard = config->Clipboard;
client->settings->SupportGraphicsPipeline = config->GFX;
client->settings->SupportDynamicChannels = TRUE;
client->settings->CertificateFile = _strdup("server.crt");