Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
dc881a25
Commit
dc881a25
authored
Aug 07, 2007
by
Huw Davies
Committed by
Alexandre Julliard
Aug 07, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Fix the case when Proxy or ProxyBypass is NULL.
parent
cdbd17bd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
20 deletions
+8
-20
internet.c
dlls/wininet/internet.c
+8
-20
No files found.
dlls/wininet/internet.c
View file @
dc881a25
...
...
@@ -2100,25 +2100,19 @@ static BOOL INET_QueryOptionHelper(BOOL bIsUnicode, HINTERNET hInternet, DWORD d
proxyBytesRequired
);
pPI
->
dwAccessType
=
lpwai
->
dwAccessType
;
pPI
->
lpszProxy
=
NULL
;
pPI
->
lpszProxyBypass
=
NULL
;
if
(
lpwai
->
lpszProxy
)
{
lstrcpyW
(
proxy
,
lpwai
->
lpszProxy
);
pPI
->
lpszProxy
=
proxy
;
}
else
{
*
proxy
=
0
;
}
pPI
->
lpszProxy
=
proxy
;
if
(
lpwai
->
lpszProxyBypass
)
{
lstrcpyW
(
proxy_bypass
,
lpwai
->
lpszProxyBypass
);
pPI
->
lpszProxyBypass
=
proxy_bypass
;
}
else
{
*
proxy_bypass
=
0
;
}
pPI
->
lpszProxyBypass
=
proxy_bypass
;
bSuccess
=
TRUE
;
}
*
lpdwBufferLength
=
sizeof
(
INTERNET_PROXY_INFOW
)
+
...
...
@@ -2147,28 +2141,22 @@ static BOOL INET_QueryOptionHelper(BOOL bIsUnicode, HINTERNET hInternet, DWORD d
proxyBytesRequired
);
pPI
->
dwAccessType
=
lpwai
->
dwAccessType
;
pPI
->
lpszProxy
=
NULL
;
pPI
->
lpszProxyBypass
=
NULL
;
if
(
lpwai
->
lpszProxy
)
{
WideCharToMultiByte
(
CP_ACP
,
0
,
lpwai
->
lpszProxy
,
-
1
,
proxy
,
proxyBytesRequired
,
NULL
,
NULL
);
pPI
->
lpszProxy
=
proxy
;
}
else
{
*
proxy
=
'\0'
;
}
pPI
->
lpszProxy
=
proxy
;
if
(
lpwai
->
lpszProxyBypass
)
{
WideCharToMultiByte
(
CP_ACP
,
0
,
lpwai
->
lpszProxyBypass
,
-
1
,
proxy_bypass
,
proxyBypassBytesRequired
,
NULL
,
NULL
);
pPI
->
lpszProxyBypass
=
proxy_bypass
;
}
else
{
*
proxy_bypass
=
'\0'
;
}
pPI
->
lpszProxyBypass
=
proxy_bypass
;
bSuccess
=
TRUE
;
}
*
lpdwBufferLength
=
sizeof
(
INTERNET_PROXY_INFOA
)
+
...
...
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