Fixed invalid pointer in freerdp_connect
After rdp_client_connect the settings pointer might have changed. Reset it from the rdpContext.
This commit is contained in:
parent
1e67db7c08
commit
a29343251c
@ -74,7 +74,7 @@ BOOL freerdp_connect(freerdp* instance)
|
||||
rdpRdp* rdp;
|
||||
BOOL status = TRUE;
|
||||
rdpSettings* settings;
|
||||
ConnectionResultEventArgs e;
|
||||
ConnectionResultEventArgs e = { 0 };
|
||||
|
||||
if (!instance)
|
||||
return FALSE;
|
||||
@ -135,6 +135,7 @@ BOOL freerdp_connect(freerdp* instance)
|
||||
status = rdp_client_connect(rdp);
|
||||
|
||||
/* Pointers might have changed inbetween */
|
||||
settings = rdp->context->settings;
|
||||
if (rdp && rdp->settings)
|
||||
{
|
||||
rdp_update_internal* up = update_cast(rdp->update);
|
||||
|
Loading…
Reference in New Issue
Block a user