[server,proxy] refactor pf_context_create_client_context

This commit is contained in:
Armin Novak
2026-01-07 15:36:27 +01:00
parent c5131e72be
commit 65a7a5ee01

View File

@@ -300,19 +300,17 @@ out_fail:
pClientContext* pf_context_create_client_context(const rdpSettings* clientSettings)
{
RDP_CLIENT_ENTRY_POINTS clientEntryPoints;
pClientContext* pc = NULL;
rdpContext* context = NULL;
RDP_CLIENT_ENTRY_POINTS clientEntryPoints = { 0 };
WINPR_ASSERT(clientSettings);
RdpClientEntry(&clientEntryPoints);
context = freerdp_client_context_new(&clientEntryPoints);
rdpContext* context = freerdp_client_context_new(&clientEntryPoints);
if (!context)
return NULL;
pc = (pClientContext*)context;
pClientContext* pc = (pClientContext*)context;
if (!pf_context_copy_settings(context->settings, clientSettings))
goto error;