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
c572e1c9
Commit
c572e1c9
authored
Jul 09, 2009
by
Juan Lang
Committed by
Alexandre Julliard
Jul 10, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Use address length returned by GetAddress in NETCON_connect.
parent
9f82d9c7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
http.c
dlls/wininet/http.c
+3
-4
internet.h
dlls/wininet/internet.h
+1
-0
No files found.
dlls/wininet/http.c
View file @
c572e1c9
...
...
@@ -1452,16 +1452,15 @@ static BOOL HTTP_ResolveName(LPWININETHTTPREQW lpwhr)
{
char
szaddr
[
32
];
LPWININETHTTPSESSIONW
lpwhs
=
lpwhr
->
lpHttpSession
;
socklen_t
sa_len
;
INTERNET_SendCallback
(
&
lpwhr
->
hdr
,
lpwhr
->
hdr
.
dwContext
,
INTERNET_STATUS_RESOLVING_NAME
,
lpwhs
->
lpszServerName
,
strlenW
(
lpwhs
->
lpszServerName
)
+
1
);
sa_len
=
sizeof
(
lpwhs
->
socketAddress
);
lpwhs
->
sa_len
=
sizeof
(
lpwhs
->
socketAddress
);
if
(
!
GetAddress
(
lpwhs
->
lpszServerName
,
lpwhs
->
nServerPort
,
(
struct
sockaddr
*
)
&
lpwhs
->
socketAddress
,
&
sa_len
))
(
struct
sockaddr
*
)
&
lpwhs
->
socketAddress
,
&
lpwhs
->
sa_len
))
{
INTERNET_SetLastError
(
ERROR_INTERNET_NAME_NOT_RESOLVED
);
return
FALSE
;
...
...
@@ -4144,7 +4143,7 @@ static BOOL HTTP_OpenConnection(LPWININETHTTPREQW lpwhr)
}
if
(
!
NETCON_connect
(
&
lpwhr
->
netConnection
,
(
struct
sockaddr
*
)
&
lpwhs
->
socketAddress
,
sizeof
(
lpwhs
->
socketAddress
)
))
lpwhs
->
sa_len
))
goto
lend
;
if
(
lpwhr
->
hdr
.
dwFlags
&
INTERNET_FLAG_SECURE
)
...
...
dlls/wininet/internet.h
View file @
c572e1c9
...
...
@@ -166,6 +166,7 @@ typedef struct
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
;
socklen_t
sa_len
;
}
WININETHTTPSESSIONW
,
*
LPWININETHTTPSESSIONW
;
#define HDR_ISREQUEST 0x0001
...
...
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