libfreerdp-core: don't set connectErrorCode when there is no error
This commit is contained in:
parent
00e6463e1e
commit
75302e2cc2
@ -192,11 +192,6 @@ BOOL freerdp_connect(freerdp* instance)
|
||||
freerdp_set_last_error(instance->context, FREERDP_ERROR_INSUFFICIENT_PRIVILEGES);
|
||||
}
|
||||
|
||||
if (!connectErrorCode)
|
||||
{
|
||||
connectErrorCode = UNDEFINEDCONNECTERROR;
|
||||
}
|
||||
|
||||
SetEvent(rdp->transport->connectedEvent);
|
||||
|
||||
freerdp_connect_finally:
|
||||
|
Loading…
Reference in New Issue
Block a user