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
da16d6b6
Commit
da16d6b6
authored
Feb 14, 2014
by
Bruno Jesus
Committed by
Alexandre Julliard
Feb 17, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ws2_32: Fix edge case for getaddrinfo in BSD and OSX.
parent
5425cb34
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
0 deletions
+27
-0
socket.c
dlls/ws2_32/socket.c
+3
-0
sock.c
dlls/ws2_32/tests/sock.c
+24
-0
No files found.
dlls/ws2_32/socket.c
View file @
da16d6b6
...
...
@@ -5466,6 +5466,9 @@ int WINAPI WS_getaddrinfo(LPCSTR nodename, LPCSTR servname, const struct WS_addr
else
node
=
nodename
;
/* servname tweak required by OSX and BSD kernels */
if
(
servname
&&
!
servname
[
0
])
servname
=
"0"
;
if
(
hints
)
{
punixhints
=
&
unixhints
;
...
...
dlls/ws2_32/tests/sock.c
View file @
da16d6b6
...
...
@@ -5402,12 +5402,24 @@ static void test_GetAddrInfoW(void)
pFreeAddrInfoW
(
result
);
result
=
NULL
;
ret
=
pGetAddrInfoW
(
NULL
,
empty
,
NULL
,
&
result
);
ok
(
!
ret
,
"GetAddrInfoW failed with %d
\n
"
,
WSAGetLastError
());
ok
(
result
!=
NULL
,
"GetAddrInfoW failed
\n
"
);
pFreeAddrInfoW
(
result
);
result
=
NULL
;
ret
=
pGetAddrInfoW
(
empty
,
zero
,
NULL
,
&
result
);
ok
(
!
ret
,
"GetAddrInfoW failed with %d
\n
"
,
WSAGetLastError
());
ok
(
result
!=
NULL
,
"GetAddrInfoW failed
\n
"
);
pFreeAddrInfoW
(
result
);
result
=
NULL
;
ret
=
pGetAddrInfoW
(
empty
,
empty
,
NULL
,
&
result
);
ok
(
!
ret
,
"GetAddrInfoW failed with %d
\n
"
,
WSAGetLastError
());
ok
(
result
!=
NULL
,
"GetAddrInfoW failed
\n
"
);
pFreeAddrInfoW
(
result
);
result
=
NULL
;
ret
=
pGetAddrInfoW
(
localhost
,
NULL
,
NULL
,
&
result
);
ok
(
!
ret
,
"GetAddrInfoW failed with %d
\n
"
,
WSAGetLastError
());
pFreeAddrInfoW
(
result
);
...
...
@@ -5529,12 +5541,24 @@ static void test_getaddrinfo(void)
pfreeaddrinfo
(
result
);
result
=
NULL
;
ret
=
pgetaddrinfo
(
NULL
,
""
,
NULL
,
&
result
);
ok
(
!
ret
,
"getaddrinfo failed with %d
\n
"
,
WSAGetLastError
());
ok
(
result
!=
NULL
,
"getaddrinfo failed
\n
"
);
pfreeaddrinfo
(
result
);
result
=
NULL
;
ret
=
pgetaddrinfo
(
""
,
"0"
,
NULL
,
&
result
);
ok
(
!
ret
,
"getaddrinfo failed with %d
\n
"
,
WSAGetLastError
());
ok
(
result
!=
NULL
,
"getaddrinfo failed
\n
"
);
pfreeaddrinfo
(
result
);
result
=
NULL
;
ret
=
pgetaddrinfo
(
""
,
""
,
NULL
,
&
result
);
ok
(
!
ret
,
"getaddrinfo failed with %d
\n
"
,
WSAGetLastError
());
ok
(
result
!=
NULL
,
"getaddrinfo failed
\n
"
);
pfreeaddrinfo
(
result
);
result
=
NULL
;
ret
=
pgetaddrinfo
(
"localhost"
,
NULL
,
NULL
,
&
result
);
ok
(
!
ret
,
"getaddrinfo failed with %d
\n
"
,
WSAGetLastError
());
pfreeaddrinfo
(
result
);
...
...
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