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
5ddf98af
Commit
5ddf98af
authored
Jan 04, 2006
by
Marcus Meissner
Committed by
Alexandre Julliard
Jan 04, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winsock: Map wildcards for socket type and protocol in getaddrinfo().
parent
45a4e543
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
socket.c
dlls/winsock/socket.c
+8
-2
No files found.
dlls/winsock/socket.c
View file @
5ddf98af
...
...
@@ -3161,8 +3161,14 @@ int WINAPI WS_getaddrinfo(LPCSTR nodename, LPCSTR servname, const struct WS_addr
memset
(
&
unixhints
,
0
,
sizeof
(
unixhints
));
punixhints
->
ai_flags
=
convert_aiflag_w2u
(
hints
->
ai_flags
);
punixhints
->
ai_family
=
convert_af_w2u
(
hints
->
ai_family
);
punixhints
->
ai_socktype
=
convert_socktype_w2u
(
hints
->
ai_socktype
);
punixhints
->
ai_protocol
=
convert_proto_w2u
(
hints
->
ai_protocol
);
if
(
hints
->
ai_socktype
==
0
)
/* wildcard, specific to getaddrinfo() */
punixhints
->
ai_socktype
=
0
;
else
punixhints
->
ai_socktype
=
convert_socktype_w2u
(
hints
->
ai_socktype
);
if
(
hints
->
ai_protocol
==
0
)
/* wildcard, specific to getaddrinfo() */
punixhints
->
ai_protocol
=
0
;
else
punixhints
->
ai_protocol
=
convert_proto_w2u
(
hints
->
ai_protocol
);
}
/* getaddrinfo(3) is thread safe, no need to wrap in CS */
...
...
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