From bab45ff7dac533babc9d787518a413a0231984da Mon Sep 17 00:00:00 2001 From: zbstao Date: Thu, 17 Feb 2022 18:07:43 +0800 Subject: [PATCH] Fixed invalid password prompt on Windows system Fixed invalid password prompt on Windows system --- client/Windows/wf_client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/Windows/wf_client.c b/client/Windows/wf_client.c index a7024487c..10691f706 100644 --- a/client/Windows/wf_client.c +++ b/client/Windows/wf_client.c @@ -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");