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
748c7b85
Commit
748c7b85
authored
Dec 30, 2017
by
André Hentschel
Committed by
Alexandre Julliard
Jan 02, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wsdapi/tests: Don't test function directly when reporting WSAGetLastError().
Signed-off-by:
André Hentschel
<
nerv@dawncrow.de
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
9f561f00
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
address.c
dlls/wsdapi/tests/address.c
+3
-1
No files found.
dlls/wsdapi/tests/address.c
View file @
748c7b85
...
...
@@ -246,6 +246,7 @@ static void GetSetSockaddr_udp_tests(void)
IWSDUdpAddress
*
udpAddress
=
NULL
;
LPCWSTR
returnedAddress
=
NULL
;
char
addressBuffer
[
MAX_PATH
];
const
char
*
cret
;
WSADATA
wsaData
;
WORD
port
=
0
;
HRESULT
rc
;
...
...
@@ -294,7 +295,8 @@ static void GetSetSockaddr_udp_tests(void)
/* Windows however doesn't set the port number */
ok
(
sockAddr6Ptr
->
sin6_port
==
0
,
"returnedStorage.sin6_port != 0 (%d)
\n
"
,
sockAddr6Ptr
->
sin6_port
);
ok
(
inet_ntop
(
returnedStorage
.
ss_family
,
&
sockAddr6Ptr
->
sin6_addr
,
addressBuffer
,
MAX_PATH
)
!=
NULL
,
"inet_ntop failed (%d)
\n
"
,
WSAGetLastError
());
cret
=
inet_ntop
(
returnedStorage
.
ss_family
,
&
sockAddr6Ptr
->
sin6_addr
,
addressBuffer
,
MAX_PATH
);
ok
(
cret
!=
NULL
,
"inet_ntop failed (%d)
\n
"
,
WSAGetLastError
());
ok
(
strcmp
(
addressBuffer
,
ipv6Address
)
==
0
,
"returnedStorage.sin6_addr != '%s' ('%s')
\n
"
,
ipv6Address
,
addressBuffer
);
/* Release the object and create a new one */
...
...
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