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
e325f7ed
Commit
e325f7ed
authored
Jun 21, 2005
by
Maarten Lankhorst
Committed by
Alexandre Julliard
Jun 21, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed setting default port number from HTTP_Connect to
HttpOpenRequestW.
parent
6d6ca1e7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
http.c
dlls/wininet/http.c
+9
-4
No files found.
dlls/wininet/http.c
View file @
e325f7ed
...
...
@@ -675,6 +675,7 @@ HINTERNET WINAPI HTTP_HttpOpenRequestW(LPWININETHTTPSESSIONW lpwhs,
static
const
WCHAR
szUrlForm
[]
=
{
'h'
,
't'
,
't'
,
'p'
,
':'
,
'/'
,
'/'
,
'%'
,
's'
,
0
};
DWORD
len
;
INTERNET_ASYNC_RESULT
iar
;
INTERNET_PORT
port
;
TRACE
(
"-->
\n
"
);
...
...
@@ -815,7 +816,14 @@ HINTERNET WINAPI HTTP_HttpOpenRequestW(LPWININETHTTPSESSIONW lpwhs,
INTERNET_STATUS_RESOLVING_NAME
,
lpwhs
->
lpszServerName
,
strlenW
(
lpwhs
->
lpszServerName
)
+
1
);
if
(
!
GetAddress
(
lpwhs
->
lpszServerName
,
lpwhs
->
nServerPort
,
port
=
lpwhs
->
nServerPort
;
if
(
port
==
INTERNET_INVALID_PORT_NUMBER
)
port
=
(
dwFlags
&
INTERNET_FLAG_SECURE
?
INTERNET_DEFAULT_HTTPS_PORT
:
INTERNET_DEFAULT_HTTP_PORT
);
if
(
!
GetAddress
(
lpwhs
->
lpszServerName
,
port
,
&
lpwhs
->
phostent
,
&
lpwhs
->
socketAddress
))
{
INTERNET_SetLastError
(
ERROR_INTERNET_NAME_NOT_RESOLVED
);
...
...
@@ -1834,9 +1842,6 @@ HINTERNET HTTP_Connect(LPWININETAPPINFOW hIC, LPCWSTR lpszServerName,
* According to my tests. The name is not resolved until a request is sent
*/
if
(
nServerPort
==
INTERNET_INVALID_PORT_NUMBER
)
nServerPort
=
INTERNET_DEFAULT_HTTP_PORT
;
lpwhs
->
hdr
.
htype
=
WH_HHTTPSESSION
;
lpwhs
->
hdr
.
lpwhparent
=
WININET_AddRef
(
&
hIC
->
hdr
);
lpwhs
->
hdr
.
dwFlags
=
dwFlags
;
...
...
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