mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-06 05:40:59 +00:00
wininet: Pass correct server name when retrieving username information.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
cb703739e5
commit
7d8d703d9b
|
@ -216,7 +216,7 @@ static INT_PTR WINAPI WININET_ProxyPasswordDialog(
|
|||
{
|
||||
HWND hitem;
|
||||
struct WININET_ErrorDlgParams *params;
|
||||
WCHAR szRealm[0x80], szServer[0x80];
|
||||
WCHAR szRealm[0x80];
|
||||
|
||||
if( uMsg == WM_INITDIALOG )
|
||||
{
|
||||
|
@ -237,7 +237,7 @@ static INT_PTR WINAPI WININET_ProxyPasswordDialog(
|
|||
hitem = GetDlgItem( hdlg, IDC_PROXY );
|
||||
SetWindowTextW( hitem, params->req->session->appInfo->proxy );
|
||||
|
||||
WININET_GetSetPassword( hdlg, szServer, szRealm, FALSE );
|
||||
WININET_GetSetPassword( hdlg, params->req->session->appInfo->proxy, szRealm, FALSE );
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
@ -291,7 +291,7 @@ static INT_PTR WINAPI WININET_PasswordDialog(
|
|||
{
|
||||
HWND hitem;
|
||||
struct WININET_ErrorDlgParams *params;
|
||||
WCHAR szRealm[0x80], szServer[0x80];
|
||||
WCHAR szRealm[0x80];
|
||||
|
||||
if( uMsg == WM_INITDIALOG )
|
||||
{
|
||||
|
@ -312,7 +312,7 @@ static INT_PTR WINAPI WININET_PasswordDialog(
|
|||
hitem = GetDlgItem( hdlg, IDC_SERVER );
|
||||
SetWindowTextW( hitem, params->req->session->hostName );
|
||||
|
||||
WININET_GetSetPassword( hdlg, szServer, szRealm, FALSE );
|
||||
WININET_GetSetPassword( hdlg, params->req->session->hostName, szRealm, FALSE );
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue