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
443edfa1
Commit
443edfa1
authored
May 12, 2014
by
Bruno Jesus
Committed by
Alexandre Julliard
May 12, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ws2_32: Avoid magic numbers in shutdown() function.
parent
fa3e750e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
socket.c
dlls/ws2_32/socket.c
+4
-4
No files found.
dlls/ws2_32/socket.c
View file @
443edfa1
...
...
@@ -5027,13 +5027,13 @@ int WINAPI WS_shutdown(SOCKET s, int how)
switch
(
how
)
{
case
0
:
/* drop receives */
case
SD_RECEIVE
:
/* drop receives */
clear_flags
|=
FD_READ
;
break
;
case
1
:
/* drop sends */
case
SD_SEND
:
/* drop sends */
clear_flags
|=
FD_WRITE
;
break
;
case
2
:
/* drop all */
case
SD_BOTH
:
/* drop all */
clear_flags
|=
FD_READ
|
FD_WRITE
;
/*fall through */
default:
...
...
@@ -7375,7 +7375,7 @@ INT WINAPI WSARecvDisconnect( SOCKET s, LPWSABUF disconnectdata )
{
TRACE
(
"(0x%04lx %p)
\n
"
,
s
,
disconnectdata
);
return
WS_shutdown
(
s
,
0
);
return
WS_shutdown
(
s
,
SD_RECEIVE
);
}
/***********************************************************************
...
...
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