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
6ec60e26
Commit
6ec60e26
authored
Aug 10, 2009
by
Juan Lang
Committed by
Alexandre Julliard
Aug 11, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Implement proxy-related per-connection option queries.
parent
3ed82127
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
2 deletions
+24
-2
internet.c
dlls/wininet/internet.c
+24
-2
No files found.
dlls/wininet/internet.c
View file @
6ec60e26
...
...
@@ -2080,23 +2080,44 @@ DWORD INET_QueryOption(DWORD option, void *buffer, DWORD *size, BOOL unicode)
case
INTERNET_OPTION_PER_CONNECTION_OPTION
:
{
INTERNET_PER_CONN_OPTION_LISTW
*
con
=
buffer
;
INTERNET_PER_CONN_OPTION_LISTA
*
conA
=
buffer
;
DWORD
res
=
ERROR_SUCCESS
,
i
;
appinfo_t
ai
;
TRACE
(
"Getting global proxy info
\n
"
);
memset
(
&
ai
,
0
,
sizeof
(
appinfo_t
));
INTERNET_ConfigureProxy
(
&
ai
);
FIXME
(
"INTERNET_OPTION_PER_CONNECTION_OPTION stub
\n
"
);
if
(
*
size
<
sizeof
(
INTERNET_PER_CONN_OPTION_LISTW
))
if
(
*
size
<
sizeof
(
INTERNET_PER_CONN_OPTION_LISTW
))
{
APPINFO_Destroy
(
&
ai
.
hdr
);
return
ERROR_INSUFFICIENT_BUFFER
;
}
for
(
i
=
0
;
i
<
con
->
dwOptionCount
;
i
++
)
{
INTERNET_PER_CONN_OPTIONW
*
option
=
con
->
pOptions
+
i
;
INTERNET_PER_CONN_OPTIONA
*
optionA
=
conA
->
pOptions
+
i
;
switch
(
option
->
dwOption
)
{
case
INTERNET_PER_CONN_FLAGS
:
option
->
Value
.
dwValue
=
PROXY_TYPE_DIRECT
;
option
->
Value
.
dwValue
=
ai
.
dwAccessType
;
break
;
case
INTERNET_PER_CONN_PROXY_SERVER
:
if
(
unicode
)
option
->
Value
.
pszValue
=
heap_strdupW
(
ai
.
lpszProxy
);
else
optionA
->
Value
.
pszValue
=
heap_strdupWtoA
(
ai
.
lpszProxy
);
break
;
case
INTERNET_PER_CONN_PROXY_BYPASS
:
if
(
unicode
)
option
->
Value
.
pszValue
=
heap_strdupW
(
ai
.
lpszProxyBypass
);
else
optionA
->
Value
.
pszValue
=
heap_strdupWtoA
(
ai
.
lpszProxyBypass
);
break
;
case
INTERNET_PER_CONN_AUTOCONFIG_URL
:
case
INTERNET_PER_CONN_AUTODISCOVERY_FLAGS
:
case
INTERNET_PER_CONN_AUTOCONFIG_SECONDARY_URL
:
...
...
@@ -2113,6 +2134,7 @@ DWORD INET_QueryOption(DWORD option, void *buffer, DWORD *size, BOOL unicode)
break
;
}
}
APPINFO_Destroy
(
&
ai
.
hdr
);
return
res
;
}
...
...
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