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
e1d26a24
Commit
e1d26a24
authored
Nov 19, 2012
by
Jacek Caban
Committed by
Alexandre Julliard
Nov 19, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Allow passing INTERNET_INVALID_PORT_NUMBER port to get_server.
parent
cdf25ee4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
12 deletions
+4
-12
http.c
dlls/wininet/http.c
+4
-9
internet.c
dlls/wininet/internet.c
+0
-3
No files found.
dlls/wininet/http.c
View file @
e1d26a24
...
...
@@ -255,6 +255,9 @@ server_t *get_server(const WCHAR *name, INTERNET_PORT port, BOOL is_https, BOOL
{
server_t
*
iter
,
*
server
=
NULL
;
if
(
port
==
INTERNET_INVALID_PORT_NUMBER
)
port
=
is_https
?
INTERNET_DEFAULT_HTTPS_PORT
:
INTERNET_DEFAULT_HTTP_PORT
;
EnterCriticalSection
(
&
connection_pool_cs
);
LIST_FOR_EACH_ENTRY
(
iter
,
&
connection_pool
,
server_t
,
entry
)
{
...
...
@@ -1723,9 +1726,6 @@ static BOOL HTTP_DealWithProxy(appinfo_t *hIC, http_session_t *session, http_req
if
(
!
request
->
path
)
request
->
path
=
szNul
;
if
(
UrlComponents
.
nPort
==
INTERNET_INVALID_PORT_NUMBER
)
UrlComponents
.
nPort
=
INTERNET_DEFAULT_HTTP_PORT
;
new_server
=
get_server
(
UrlComponents
.
lpszHostName
,
UrlComponents
.
nPort
,
UrlComponents
.
nScheme
==
INTERNET_SCHEME_HTTPS
,
TRUE
);
if
(
!
new_server
)
return
FALSE
;
...
...
@@ -3164,7 +3164,6 @@ static DWORD HTTP_HttpOpenRequestW(http_session_t *session,
{
appinfo_t
*
hIC
=
session
->
appInfo
;
http_request_t
*
request
;
INTERNET_PORT
port
;
DWORD
len
,
res
=
ERROR_SUCCESS
;
TRACE
(
"-->
\n
"
);
...
...
@@ -3191,11 +3190,7 @@ static DWORD HTTP_HttpOpenRequestW(http_session_t *session,
request
->
session
=
session
;
list_add_head
(
&
session
->
hdr
.
children
,
&
request
->
hdr
.
entry
);
port
=
session
->
hostPort
;
if
(
port
==
INTERNET_INVALID_PORT_NUMBER
)
port
=
dwFlags
&
INTERNET_FLAG_SECURE
?
INTERNET_DEFAULT_HTTPS_PORT
:
INTERNET_DEFAULT_HTTP_PORT
;
request
->
server
=
get_server
(
session
->
hostName
,
port
,
(
dwFlags
&
INTERNET_FLAG_SECURE
)
!=
0
,
TRUE
);
request
->
server
=
get_server
(
session
->
hostName
,
session
->
hostPort
,
(
dwFlags
&
INTERNET_FLAG_SECURE
)
!=
0
,
TRUE
);
if
(
!
request
->
server
)
{
WININET_Release
(
&
request
->
hdr
);
return
ERROR_OUTOFMEMORY
;
...
...
dlls/wininet/internet.c
View file @
e1d26a24
...
...
@@ -4428,9 +4428,6 @@ BOOL WINAPI InternetGetSecurityInfoByURLW(LPCWSTR lpszURL, PCCERT_CHAIN_CONTEXT
return
FALSE
;
}
if
(
url
.
nPort
==
INTERNET_INVALID_PORT_NUMBER
)
url
.
nPort
=
INTERNET_DEFAULT_HTTPS_PORT
;
server
=
get_server
(
hostname
,
url
.
nPort
,
TRUE
,
FALSE
);
if
(
!
server
)
{
SetLastError
(
ERROR_INTERNET_ITEM_NOT_FOUND
);
...
...
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