Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hongxin Zhao
wine
Commits
9bc30468
Commit
9bc30468
authored
12 years ago
by
Jacek Caban
Committed by
Alexandre Julliard
12 years ago
Browse files
Options
Downloads
Patches
Plain Diff
wininet: Simplify proxy server access in dialogs.
parent
bc99d867
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dlls/wininet/dialogs.c
+4
-52
4 additions, 52 deletions
dlls/wininet/dialogs.c
with
4 additions
and
52 deletions
dlls/wininet/dialogs.c
+
4
−
52
View file @
9bc30468
...
...
@@ -57,45 +57,6 @@ struct WININET_ErrorDlgParams
LPVOID
*
lppvData
;
};
/***********************************************************************
* WININET_GetProxyServer
*
* Determine the name of the proxy server the request is using
*/
static
BOOL
WININET_GetProxyServer
(
HINTERNET
hRequest
,
LPWSTR
szBuf
,
DWORD
sz
)
{
http_request_t
*
request
;
http_session_t
*
session
=
NULL
;
appinfo_t
*
hIC
=
NULL
;
BOOL
ret
=
FALSE
;
LPWSTR
p
;
request
=
(
http_request_t
*
)
get_handle_object
(
hRequest
);
if
(
NULL
==
request
)
return
FALSE
;
session
=
request
->
session
;
if
(
NULL
==
session
)
goto
done
;
hIC
=
session
->
appInfo
;
if
(
NULL
==
hIC
)
goto
done
;
lstrcpynW
(
szBuf
,
hIC
->
proxy
,
sz
);
/* FIXME: perhaps it would be better to use InternetCrackUrl here */
p
=
strchrW
(
szBuf
,
':'
);
if
(
p
)
*
p
=
0
;
ret
=
TRUE
;
done:
WININET_Release
(
&
request
->
hdr
);
return
ret
;
}
/***********************************************************************
* WININET_GetServer
*
...
...
@@ -324,13 +285,8 @@ static INT_PTR WINAPI WININET_ProxyPasswordDialog(
SetWindowTextW
(
hitem
,
szRealm
);
}
/* extract the name of the proxy server */
if
(
WININET_GetProxyServer
(
params
->
req
->
hdr
.
hInternet
,
szServer
,
sizeof
szServer
/
sizeof
(
WCHAR
))
)
{
hitem
=
GetDlgItem
(
hdlg
,
IDC_PROXY
);
SetWindowTextW
(
hitem
,
szServer
);
}
hitem
=
GetDlgItem
(
hdlg
,
IDC_PROXY
);
SetWindowTextW
(
hitem
,
params
->
req
->
session
->
appInfo
->
proxy
);
WININET_GetSetPassword
(
hdlg
,
szServer
,
szRealm
,
FALSE
);
...
...
@@ -361,12 +317,8 @@ static INT_PTR WINAPI WININET_ProxyPasswordDialog(
if
(
hitem
&&
SendMessageW
(
hitem
,
BM_GETSTATE
,
0
,
0
)
&&
WININET_GetAuthRealm
(
params
->
req
->
hdr
.
hInternet
,
szRealm
,
sizeof
szRealm
/
sizeof
(
WCHAR
),
TRUE
)
&&
WININET_GetProxyServer
(
params
->
req
->
hdr
.
hInternet
,
szServer
,
sizeof
szServer
/
sizeof
(
WCHAR
))
)
{
WININET_GetSetPassword
(
hdlg
,
szServer
,
szRealm
,
TRUE
);
}
szRealm
,
sizeof
szRealm
/
sizeof
(
WCHAR
),
TRUE
)
)
WININET_GetSetPassword
(
hdlg
,
params
->
req
->
session
->
appInfo
->
proxy
,
szRealm
,
TRUE
);
WININET_SetAuthorization
(
params
->
req
->
hdr
.
hInternet
,
username
,
password
,
TRUE
);
EndDialog
(
hdlg
,
ERROR_INTERNET_FORCE_RETRY
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment