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
8a8ce9c4
Commit
8a8ce9c4
authored
Nov 29, 2005
by
Robert Shearman
Committed by
Alexandre Julliard
Nov 29, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More lpszServerName -> lpszHostName fixes.
parent
22f9f4f0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
http.c
dlls/wininet/http.c
+7
-7
No files found.
dlls/wininet/http.c
View file @
8a8ce9c4
...
...
@@ -1874,23 +1874,23 @@ static BOOL HTTP_HandleRedirect(LPWININETHTTPREQW lpwhr, LPCWSTR lpszUrl, LPCWST
HTTP_ADDHDR_FLAG_ADD_IF_NEW);
#endif
HeapFree
(
GetProcessHeap
(),
0
,
lpwhs
->
lpszHostName
);
lpwhs
->
lpszHostName
=
WININET_strdupW
(
hostName
);
HeapFree
(
GetProcessHeap
(),
0
,
lpwhs
->
lpszServerName
);
lpwhs
->
lpszServerName
=
WININET_strdupW
(
hostName
);
HeapFree
(
GetProcessHeap
(),
0
,
lpwhs
->
lpszHostName
);
if
(
urlComponents
.
nPort
!=
INTERNET_DEFAULT_HTTP_PORT
&&
urlComponents
.
nPort
!=
INTERNET_DEFAULT_HTTPS_PORT
)
{
int
len
;
static
WCHAR
fmt
[]
=
{
'%'
,
's'
,
':'
,
'%'
,
'i'
,
0
};
len
=
lstrlenW
(
hostName
);
len
+=
6
;
lpwhs
->
lpsz
ServerName
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
*
sizeof
(
WCHAR
));
sprintfW
(
lpwhs
->
lpsz
ServerName
,
fmt
,
hostName
,
urlComponents
.
nPort
);
len
+=
7
;
/* 5 for strlen("65535") + 1 for ":" + 1 for '\0' */
lpwhs
->
lpsz
HostName
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
*
sizeof
(
WCHAR
));
sprintfW
(
lpwhs
->
lpsz
HostName
,
fmt
,
hostName
,
urlComponents
.
nPort
);
}
else
lpwhs
->
lpsz
Server
Name
=
WININET_strdupW
(
hostName
);
lpwhs
->
lpsz
Host
Name
=
WININET_strdupW
(
hostName
);
HTTP_ProcessHeader
(
lpwhr
,
g_szHost
,
lpwhs
->
lpsz
Server
Name
,
HTTP_ADDREQ_FLAG_ADD
|
HTTP_ADDREQ_FLAG_REPLACE
|
HTTP_ADDHDR_FLAG_REQ
);
HTTP_ProcessHeader
(
lpwhr
,
g_szHost
,
lpwhs
->
lpsz
Host
Name
,
HTTP_ADDREQ_FLAG_ADD
|
HTTP_ADDREQ_FLAG_REPLACE
|
HTTP_ADDHDR_FLAG_REQ
);
HeapFree
(
GetProcessHeap
(),
0
,
lpwhs
->
lpszUserName
);
...
...
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