mirror of
https://github.com/FreeRDP/FreeRDP.git
synced 2025-06-03 00:00:20 +00:00
Setting hostname as default domain now.
This commit is contained in:
parent
c3e368bd4b
commit
a7943a53cd
@ -492,8 +492,6 @@ BOOL wf_post_connect(freerdp* instance)
|
|||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
static const char wfTargetName[] = "TARGET";
|
|
||||||
|
|
||||||
static CREDUI_INFOA wfUiInfo =
|
static CREDUI_INFOA wfUiInfo =
|
||||||
{
|
{
|
||||||
sizeof(CREDUI_INFOA),
|
sizeof(CREDUI_INFOA),
|
||||||
@ -518,7 +516,9 @@ BOOL wf_authenticate(freerdp* instance, char** username, char** password, char**
|
|||||||
ZeroMemory(Password, sizeof(Password));
|
ZeroMemory(Password, sizeof(Password));
|
||||||
dwFlags = CREDUI_FLAGS_DO_NOT_PERSIST | CREDUI_FLAGS_EXCLUDE_CERTIFICATES;
|
dwFlags = CREDUI_FLAGS_DO_NOT_PERSIST | CREDUI_FLAGS_EXCLUDE_CERTIFICATES;
|
||||||
|
|
||||||
status = CredUIPromptForCredentialsA(&wfUiInfo, wfTargetName, NULL, 0,
|
status = CredUIPromptForCredentialsA(&wfUiInfo,
|
||||||
|
instance->settings->ServerHostname,
|
||||||
|
NULL, 0,
|
||||||
UserName, CREDUI_MAX_USERNAME_LENGTH + 1,
|
UserName, CREDUI_MAX_USERNAME_LENGTH + 1,
|
||||||
Password, CREDUI_MAX_PASSWORD_LENGTH + 1, &fSave, dwFlags);
|
Password, CREDUI_MAX_PASSWORD_LENGTH + 1, &fSave, dwFlags);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user