Fixed invalid password prompt on Windows system

Fixed invalid password prompt on Windows system
This commit is contained in:
zbstao 2022-02-17 18:07:43 +08:00 committed by akallabeth
parent c1a1e4f1d2
commit bab45ff7da

View File

@ -486,7 +486,7 @@ static BOOL wf_authenticate_raw(freerdp* instance, const char* title, char** use
strncpy(Domain, *domain, CREDUI_MAX_DOMAIN_TARGET_LENGTH);
}
if (!(username && *username && password && *password))
if (!(*UserName && *Password))
{
if (!wfc->isConsole && wfc->context.settings->CredentialsFromStdin)
WLog_ERR(TAG, "Flag for stdin read present but stdin is redirected; using GUI");