Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
55759576
Commit
55759576
authored
Jul 14, 2009
by
Juan Lang
Committed by
Alexandre Julliard
Jul 15, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winhttp: Honor WINHTTP_ACCESS_TYPE_DEFAULT_PROXY in WinHttpOpen.
parent
51e54a8b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
1 deletion
+23
-1
session.c
dlls/winhttp/session.c
+23
-1
No files found.
dlls/winhttp/session.c
View file @
55759576
...
...
@@ -168,13 +168,35 @@ HINTERNET WINAPI WinHttpOpen( LPCWSTR agent, DWORD access, LPCWSTR proxy, LPCWST
session
->
hdr
.
vtbl
=
&
session_vtbl
;
session
->
hdr
.
flags
=
flags
;
session
->
hdr
.
refs
=
1
;
session
->
access
=
access
;
session
->
hdr
.
redirect_policy
=
WINHTTP_OPTION_REDIRECT_POLICY_DISALLOW_HTTPS_TO_HTTP
;
list_init
(
&
session
->
cookie_cache
);
if
(
agent
&&
!
(
session
->
agent
=
strdupW
(
agent
)))
goto
end
;
if
(
access
==
WINHTTP_ACCESS_TYPE_DEFAULT_PROXY
)
{
WINHTTP_PROXY_INFO
info
;
WinHttpGetDefaultProxyConfiguration
(
&
info
);
session
->
access
=
info
.
dwAccessType
;
if
(
info
.
lpszProxy
&&
!
(
session
->
proxy_server
=
strdupW
(
info
.
lpszProxy
)))
{
GlobalFree
(
(
LPWSTR
)
info
.
lpszProxy
);
GlobalFree
(
(
LPWSTR
)
info
.
lpszProxyBypass
);
goto
end
;
}
if
(
info
.
lpszProxyBypass
&&
!
(
session
->
proxy_bypass
=
strdupW
(
info
.
lpszProxyBypass
)))
{
GlobalFree
(
(
LPWSTR
)
info
.
lpszProxy
);
GlobalFree
(
(
LPWSTR
)
info
.
lpszProxyBypass
);
goto
end
;
}
}
else
if
(
access
==
WINHTTP_ACCESS_TYPE_NAMED_PROXY
)
{
session
->
access
=
access
;
if
(
proxy
&&
!
(
session
->
proxy_server
=
strdupW
(
proxy
)))
goto
end
;
if
(
bypass
&&
!
(
session
->
proxy_bypass
=
strdupW
(
bypass
)))
goto
end
;
}
if
(
!
(
handle
=
alloc_handle
(
&
session
->
hdr
)))
goto
end
;
session
->
hdr
.
handle
=
handle
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment