libfreerdp-core: don't set connectErrorCode when there is no error

This commit is contained in:
Marc-André Moreau 2014-03-27 11:50:56 -04:00
parent 00e6463e1e
commit 75302e2cc2

View File

@ -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: