mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
added the INSUFFICIENTPRIVILEGESERROR code if a use is not in the remote desktop group
This commit is contained in:
@@ -147,6 +147,7 @@ extern int connectErrorCode;
|
||||
#define MCSCONNECTINITIALERROR ERRORSTART + 7
|
||||
#define TLSCONNECTERROR ERRORSTART + 8
|
||||
#define AUTHENTICATIONERROR ERRORSTART + 9
|
||||
#define INSUFFICIENTPRIVILEGESERROR ERRORSTART + 10
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
@@ -109,12 +109,12 @@ BOOL freerdp_connect(freerdp* instance)
|
||||
if (!status)
|
||||
{
|
||||
fprintf(stderr, "freerdp_post_connect failed\n");
|
||||
|
||||
|
||||
if (!connectErrorCode)
|
||||
{
|
||||
connectErrorCode = POSTCONNECTERROR;
|
||||
}
|
||||
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
@@ -129,7 +129,7 @@ BOOL freerdp_connect(freerdp* instance)
|
||||
|
||||
if (instance->update->pcap_rfx)
|
||||
instance->update->play_rfx = TRUE;
|
||||
|
||||
|
||||
update = instance->update;
|
||||
|
||||
while (instance->update->play_rfx && pcap_has_next_record(update->pcap_rfx))
|
||||
@@ -153,6 +153,11 @@ BOOL freerdp_connect(freerdp* instance)
|
||||
}
|
||||
}
|
||||
|
||||
if (rdp->errorInfo == ERRINFO_SERVER_INSUFFICIENT_PRIVILEGES)
|
||||
{
|
||||
connectErrorCode = INSUFFICIENTPRIVILEGESERROR;
|
||||
}
|
||||
|
||||
if (!connectErrorCode)
|
||||
{
|
||||
connectErrorCode = UNDEFINEDCONNECTERROR;
|
||||
|
||||
Reference in New Issue
Block a user