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
73895b32
Commit
73895b32
authored
May 03, 2013
by
Daniel Lehman
Committed by
Alexandre Julliard
May 08, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Accept ProxyBypass from environment or registry.
parent
c3b64d94
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
1 deletion
+42
-1
internet.c
dlls/wininet/internet.c
+42
-1
No files found.
dlls/wininet/internet.c
View file @
73895b32
...
...
@@ -116,6 +116,7 @@ static const WCHAR szInternetSettings[] =
'I'
,
'n'
,
't'
,
'e'
,
'r'
,
'n'
,
'e'
,
't'
,
' '
,
'S'
,
'e'
,
't'
,
't'
,
'i'
,
'n'
,
'g'
,
's'
,
0
};
static
const
WCHAR
szProxyServer
[]
=
{
'P'
,
'r'
,
'o'
,
'x'
,
'y'
,
'S'
,
'e'
,
'r'
,
'v'
,
'e'
,
'r'
,
0
};
static
const
WCHAR
szProxyEnable
[]
=
{
'P'
,
'r'
,
'o'
,
'x'
,
'y'
,
'E'
,
'n'
,
'a'
,
'b'
,
'l'
,
'e'
,
0
};
static
const
WCHAR
szProxyOverride
[]
=
{
'P'
,
'r'
,
'o'
,
'x'
,
'y'
,
'O'
,
'v'
,
'e'
,
'r'
,
'r'
,
'i'
,
'd'
,
'e'
,
0
};
void
*
alloc_object
(
object_header_t
*
parent
,
const
object_vtbl_t
*
vtbl
,
size_t
size
)
{
...
...
@@ -610,9 +611,49 @@ static LONG INTERNET_LoadProxySettings( proxyinfo_t *lpwpi )
TRACE
(
"http proxy (from environment) = %s
\n
"
,
debugstr_w
(
lpwpi
->
proxy
));
}
RegCloseKey
(
key
);
lpwpi
->
proxyBypass
=
NULL
;
if
(
lpwpi
->
proxyEnabled
)
{
if
(
!
(
envproxy
=
getenv
(
"no_proxy"
)))
{
/* figure out how much memory the proxy setting takes */
if
(
!
RegQueryValueExW
(
key
,
szProxyOverride
,
NULL
,
&
type
,
NULL
,
&
len
)
&&
len
&&
(
type
==
REG_SZ
))
{
LPWSTR
szProxy
;
if
(
!
(
szProxy
=
heap_alloc
(
len
)))
{
RegCloseKey
(
key
);
return
ERROR_OUTOFMEMORY
;
}
RegQueryValueExW
(
key
,
szProxyOverride
,
NULL
,
&
type
,
(
BYTE
*
)
szProxy
,
&
len
);
lpwpi
->
proxyBypass
=
szProxy
;
TRACE
(
"http proxy bypass = %s
\n
"
,
debugstr_w
(
lpwpi
->
proxyBypass
));
}
else
{
TRACE
(
"No proxy bypass server settings in registry.
\n
"
);
}
}
else
if
(
envproxy
)
{
WCHAR
*
envproxyW
;
len
=
MultiByteToWideChar
(
CP_UNIXCP
,
0
,
envproxy
,
-
1
,
NULL
,
0
);
if
(
!
(
envproxyW
=
heap_alloc
(
len
*
sizeof
(
WCHAR
))))
return
ERROR_OUTOFMEMORY
;
MultiByteToWideChar
(
CP_UNIXCP
,
0
,
envproxy
,
-
1
,
envproxyW
,
len
);
lpwpi
->
proxyBypass
=
envproxyW
;
TRACE
(
"http proxy bypass (from environment) = %s
\n
"
,
debugstr_w
(
lpwpi
->
proxyBypass
));
}
}
RegCloseKey
(
key
);
return
ERROR_SUCCESS
;
}
...
...
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