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
3b2fcdd4
Commit
3b2fcdd4
authored
Apr 10, 2012
by
Bruno Jesus
Committed by
Alexandre Julliard
Apr 11, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ws2_32/tests: Avoid crashing if getservbyname fails.
parent
d2096970
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
sock.c
dlls/ws2_32/tests/sock.c
+1
-0
No files found.
dlls/ws2_32/tests/sock.c
View file @
3b2fcdd4
...
...
@@ -1600,6 +1600,7 @@ static DWORD WINAPI do_getservbyname( void *param )
for
(
j
=
0
;
j
<
2
;
j
++
)
{
pserv
[
j
]
=
getservbyname
(
serv
[
j
].
name
,
serv
[
j
].
proto
);
ok
(
pserv
[
j
]
!=
NULL
,
"getservbyname could not retrieve information for %s: %d
\n
"
,
serv
[
j
].
name
,
WSAGetLastError
()
);
if
(
!
pserv
[
j
]
)
continue
;
ok
(
pserv
[
j
]
->
s_port
==
htons
(
serv
[
j
].
port
),
"getservbyname returned the wrong port for %s: %d
\n
"
,
serv
[
j
].
name
,
ntohs
(
pserv
[
j
]
->
s_port
)
);
ok
(
!
strcmp
(
pserv
[
j
]
->
s_proto
,
serv
[
j
].
proto
),
"getservbyname returned the wrong protocol for %s: %s
\n
"
,
serv
[
j
].
name
,
pserv
[
j
]
->
s_proto
);
ok
(
!
strcmp
(
pserv
[
j
]
->
s_name
,
serv
[
j
].
name
),
"getservbyname returned the wrong name for %s: %s
\n
"
,
serv
[
j
].
name
,
pserv
[
j
]
->
s_name
);
...
...
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