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
729631d9
Commit
729631d9
authored
Mar 31, 2008
by
Hans Leidekker
Committed by
Alexandre Julliard
Apr 01, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Remove dead code from HTTP_DealWithProxy and improve its debug trace.
parent
2b82aa1d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
7 deletions
+1
-7
http.c
dlls/wininet/http.c
+1
-7
No files found.
dlls/wininet/http.c
View file @
729631d9
...
...
@@ -1269,12 +1269,10 @@ static BOOL HTTP_DealWithProxy( LPWININETAPPINFOW hIC,
{
WCHAR
buf
[
MAXHOSTNAME
];
WCHAR
proxy
[
MAXHOSTNAME
+
15
];
/* 15 == "http://" + sizeof(port#) + ":/\0" */
WCHAR
*
url
;
static
WCHAR
szNul
[]
=
{
0
};
URL_COMPONENTSW
UrlComponents
;
static
const
WCHAR
szHttp
[]
=
{
'h'
,
't'
,
't'
,
'p'
,
':'
,
'/'
,
'/'
,
0
};
static
const
WCHAR
szFormat
[]
=
{
'h'
,
't'
,
't'
,
'p'
,
':'
,
'/'
,
'/'
,
'%'
,
's'
,
0
};
int
len
;
memset
(
&
UrlComponents
,
0
,
sizeof
UrlComponents
);
UrlComponents
.
dwStructSize
=
sizeof
UrlComponents
;
...
...
@@ -1293,11 +1291,6 @@ static BOOL HTTP_DealWithProxy( LPWININETAPPINFOW hIC,
if
(
!
lpwhr
->
lpszPath
)
lpwhr
->
lpszPath
=
szNul
;
TRACE
(
"server=%s path=%s
\n
"
,
debugstr_w
(
lpwhs
->
lpszHostName
),
debugstr_w
(
lpwhr
->
lpszPath
));
/* for constant 15 see above */
len
=
strlenW
(
lpwhs
->
lpszHostName
)
+
strlenW
(
lpwhr
->
lpszPath
)
+
15
;
url
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
*
sizeof
(
WCHAR
));
if
(
UrlComponents
.
nPort
==
INTERNET_INVALID_PORT_NUMBER
)
UrlComponents
.
nPort
=
INTERNET_DEFAULT_HTTP_PORT
;
...
...
@@ -1306,6 +1299,7 @@ static BOOL HTTP_DealWithProxy( LPWININETAPPINFOW hIC,
lpwhs
->
lpszServerName
=
WININET_strdupW
(
UrlComponents
.
lpszHostName
);
lpwhs
->
nServerPort
=
UrlComponents
.
nPort
;
TRACE
(
"proxy server=%s port=%d
\n
"
,
debugstr_w
(
lpwhs
->
lpszServerName
),
lpwhs
->
nServerPort
);
return
TRUE
;
}
...
...
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