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
3592110a
Commit
3592110a
authored
Nov 28, 2005
by
Robert Shearman
Committed by
Alexandre Julliard
Nov 28, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a host port field that preserves the requested port of the
destination URL.
parent
a1eeaf97
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
http.c
dlls/wininet/http.c
+3
-1
internet.h
dlls/wininet/internet.h
+2
-1
No files found.
dlls/wininet/http.c
View file @
3592110a
...
...
@@ -918,7 +918,7 @@ static BOOL HTTP_DealWithProxy( LPWININETAPPINFOW hIC,
if
(
UrlComponents
.
nPort
==
INTERNET_INVALID_PORT_NUMBER
)
UrlComponents
.
nPort
=
INTERNET_DEFAULT_HTTP_PORT
;
sprintfW
(
url
,
szFormat2
,
lpwhs
->
lpszHostName
,
lpwhs
->
n
Server
Port
);
sprintfW
(
url
,
szFormat2
,
lpwhs
->
lpszHostName
,
lpwhs
->
n
Host
Port
);
if
(
lpwhr
->
lpszPath
[
0
]
!=
'/'
)
strcatW
(
url
,
szSlash
);
...
...
@@ -1042,6 +1042,7 @@ HINTERNET WINAPI HTTP_HttpOpenRequestW(LPWININETHTTPSESSIONW lpwhs,
lpwhs
->
nServerPort
=
(
dwFlags
&
INTERNET_FLAG_SECURE
?
INTERNET_DEFAULT_HTTPS_PORT
:
INTERNET_DEFAULT_HTTP_PORT
);
lpwhs
->
nHostPort
=
lpwhs
->
nServerPort
;
if
(
NULL
!=
hIC
->
lpszProxy
&&
hIC
->
lpszProxy
[
0
]
!=
0
)
HTTP_DealWithProxy
(
hIC
,
lpwhs
,
lpwhr
);
...
...
@@ -2112,6 +2113,7 @@ HINTERNET HTTP_Connect(LPWININETAPPINFOW hIC, LPCWSTR lpszServerName,
if
(
NULL
!=
lpszUserName
)
lpwhs
->
lpszUserName
=
WININET_strdupW
(
lpszUserName
);
lpwhs
->
nServerPort
=
nServerPort
;
lpwhs
->
nHostPort
=
nServerPort
;
/* Don't send a handle created callback if this handle was created with InternetOpenUrl */
if
(
!
(
lpwhs
->
hdr
.
dwInternalFlags
&
INET_OPENURL
))
...
...
dlls/wininet/internet.h
View file @
3592110a
...
...
@@ -167,7 +167,8 @@ typedef struct
LPWSTR
lpszHostName
;
/* the final destination of the request */
LPWSTR
lpszServerName
;
/* the name of the server we directly connect to */
LPWSTR
lpszUserName
;
INTERNET_PORT
nServerPort
;
INTERNET_PORT
nHostPort
;
/* the final destination port of the request */
INTERNET_PORT
nServerPort
;
/* the port of the server we directly connect to */
struct
sockaddr_in
socketAddress
;
}
WININETHTTPSESSIONW
,
*
LPWININETHTTPSESSIONW
;
...
...
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