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
481c9b89
Commit
481c9b89
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: Support IPv6 addresses in HTTP_ResolveName and HTTP_OpenConnection.
parent
058e918d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
http.c
dlls/wininet/http.c
+12
-2
No files found.
dlls/wininet/http.c
View file @
481c9b89
...
...
@@ -1448,9 +1448,13 @@ static BOOL HTTP_DealWithProxy( LPWININETAPPINFOW hIC,
return
TRUE
;
}
#ifndef INET6_ADDRSTRLEN
#define INET6_ADDRSTRLEN 46
#endif
static
BOOL
HTTP_ResolveName
(
LPWININETHTTPREQW
lpwhr
)
{
char
szaddr
[
32
];
char
szaddr
[
INET6_ADDRSTRLEN
];
LPWININETHTTPSESSIONW
lpwhs
=
lpwhr
->
lpHttpSession
;
const
void
*
addr
;
...
...
@@ -1472,6 +1476,9 @@ static BOOL HTTP_ResolveName(LPWININETHTTPREQW lpwhr)
case
AF_INET
:
addr
=
&
((
struct
sockaddr_in
*
)
&
lpwhs
->
socketAddress
)
->
sin_addr
;
break
;
case
AF_INET6
:
addr
=
&
((
struct
sockaddr_in6
*
)
&
lpwhs
->
socketAddress
)
->
sin6_addr
;
break
;
default:
WARN
(
"unsupported family %d
\n
"
,
lpwhs
->
socketAddress
.
ss_family
);
INTERNET_SetLastError
(
ERROR_INTERNET_NAME_NOT_RESOLVED
);
...
...
@@ -4117,7 +4124,7 @@ static BOOL HTTP_OpenConnection(LPWININETHTTPREQW lpwhr)
BOOL
bSuccess
=
FALSE
;
LPWININETHTTPSESSIONW
lpwhs
;
LPWININETAPPINFOW
hIC
=
NULL
;
char
szaddr
[
32
];
char
szaddr
[
INET6_ADDRSTRLEN
];
const
void
*
addr
;
TRACE
(
"-->
\n
"
);
...
...
@@ -4144,6 +4151,9 @@ static BOOL HTTP_OpenConnection(LPWININETHTTPREQW lpwhr)
case
AF_INET
:
addr
=
&
((
struct
sockaddr_in
*
)
&
lpwhs
->
socketAddress
)
->
sin_addr
;
break
;
case
AF_INET6
:
addr
=
&
((
struct
sockaddr_in6
*
)
&
lpwhs
->
socketAddress
)
->
sin6_addr
;
break
;
default:
WARN
(
"unsupported family %d
\n
"
,
lpwhs
->
socketAddress
.
ss_family
);
INTERNET_SetLastError
(
ERROR_INTERNET_NAME_NOT_RESOLVED
);
...
...
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