Merge pull request #2638 from kwitaszczyk/master
Assign peer to settings when a new RDP module is being initialized.
This commit is contained in:
commit
7a1485a2e4
@ -635,6 +635,7 @@ BOOL freerdp_peer_context_new(freerdp_peer* client)
|
|||||||
|
|
||||||
client->context = context;
|
client->context = context;
|
||||||
|
|
||||||
|
context->peer = client;
|
||||||
context->ServerMode = TRUE;
|
context->ServerMode = TRUE;
|
||||||
|
|
||||||
if (!(context->metrics = metrics_new(context)))
|
if (!(context->metrics = metrics_new(context)))
|
||||||
@ -649,7 +650,6 @@ BOOL freerdp_peer_context_new(freerdp_peer* client)
|
|||||||
client->autodetect = rdp->autodetect;
|
client->autodetect = rdp->autodetect;
|
||||||
|
|
||||||
context->rdp = rdp;
|
context->rdp = rdp;
|
||||||
context->peer = client;
|
|
||||||
context->input = client->input;
|
context->input = client->input;
|
||||||
context->update = client->update;
|
context->update = client->update;
|
||||||
context->settings = client->settings;
|
context->settings = client->settings;
|
||||||
|
@ -1406,10 +1406,16 @@ rdpRdp* rdp_new(rdpContext* context)
|
|||||||
}
|
}
|
||||||
|
|
||||||
rdp->settings = context->settings;
|
rdp->settings = context->settings;
|
||||||
rdp->settings->instance = context->instance;
|
|
||||||
|
|
||||||
if (context->instance)
|
if (context->instance)
|
||||||
|
{
|
||||||
|
rdp->settings->instance = context->instance;
|
||||||
context->instance->settings = rdp->settings;
|
context->instance->settings = rdp->settings;
|
||||||
|
}
|
||||||
|
else if (context->peer)
|
||||||
|
{
|
||||||
|
rdp->settings->instance = context->peer;
|
||||||
|
context->peer->settings = rdp->settings;
|
||||||
|
}
|
||||||
|
|
||||||
rdp->transport = transport_new(context);
|
rdp->transport = transport_new(context);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user