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
42a9ca57
Commit
42a9ca57
authored
Mar 17, 2003
by
Paul Rupe
Committed by
Alexandre Julliard
Mar 17, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Treat blank protocol the same as NULL in getservbyname &
getservbyport.
parent
a9c51cb6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
socket.c
dlls/winsock/socket.c
+3
-2
No files found.
dlls/winsock/socket.c
View file @
42a9ca57
...
...
@@ -3158,7 +3158,7 @@ static WIN_servent* __ws_getservbyname(const char *name, const char *proto, int
if
(
i
)
{
EnterCriticalSection
(
&
csWSgetXXXbyYYY
);
serv
=
getservbyname
(
local_buffer
,
proto
?
(
local_buffer
+
i
)
:
NULL
);
proto
&&
*
proto
?
(
local_buffer
+
i
)
:
NULL
);
if
(
serv
!=
NULL
)
{
if
(
WS_dup_se
(
serv
,
dup_flag
)
)
...
...
@@ -3207,7 +3207,8 @@ static WIN_servent* __ws_getservbyport(int port, const char* proto, int dup_flag
struct
servent
*
serv
;
if
(
!
proto
||
wsi_strtolo
(
proto
,
NULL
))
{
EnterCriticalSection
(
&
csWSgetXXXbyYYY
);
if
(
(
serv
=
getservbyport
(
port
,
(
proto
)
?
local_buffer
:
NULL
))
!=
NULL
)
{
if
(
(
serv
=
getservbyport
(
port
,
proto
&&
*
proto
?
local_buffer
:
NULL
))
!=
NULL
)
{
if
(
WS_dup_se
(
serv
,
dup_flag
)
)
retval
=
se_buffer
;
else
SetLastError
(
WSAENOBUFS
);
...
...
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