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
4a8961ce
Commit
4a8961ce
authored
Feb 25, 2006
by
Hans Leidekker
Committed by
Alexandre Julliard
Feb 27, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winsock: Fix two Windows to Unix mapping issues.
Handle wildcard address family hint in getaddrinfo. Convert flags too in getnameinfo.
parent
39be679a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
socket.c
dlls/winsock/socket.c
+5
-2
No files found.
dlls/winsock/socket.c
View file @
4a8961ce
...
...
@@ -3146,7 +3146,10 @@ 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
);
if
(
hints
->
ai_family
==
0
)
/* wildcard, specific to getaddrinfo() */
punixhints
->
ai_family
=
0
;
else
punixhints
->
ai_family
=
convert_af_w2u
(
hints
->
ai_family
);
if
(
hints
->
ai_socktype
==
0
)
/* wildcard, specific to getaddrinfo() */
punixhints
->
ai_socktype
=
0
;
else
...
...
@@ -3252,7 +3255,7 @@ int WINAPI WS_getnameinfo(const SOCKADDR *sa, socklen_t salen, PCHAR host,
WSASetLastError
(
WSAEFAULT
);
return
WSA_NOT_ENOUGH_MEMORY
;
}
ret
=
getnameinfo
(
sa_u
,
size
,
host
,
hostlen
,
serv
,
servlen
,
flags
);
ret
=
getnameinfo
(
sa_u
,
size
,
host
,
hostlen
,
serv
,
servlen
,
convert_aiflag_w2u
(
flags
)
);
ws_sockaddr_free
(
sa_u
,
sa
);
return
convert_eai_u2w
(
ret
);
...
...
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