Commit 443edfa1 authored by Bruno Jesus's avatar Bruno Jesus Committed by Alexandre Julliard

ws2_32: Avoid magic numbers in shutdown() function.

parent fa3e750e
......@@ -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 );
}
/***********************************************************************
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment