ws2_32: Add missing else to getsockopt(SO_ACCEPTCONN).

This commit is contained in:
Bruno Jesus 2013-09-21 15:44:57 -03:00 committed by Alexandre Julliard
parent c52eb21754
commit cba19b9027

View File

@ -2967,10 +2967,11 @@ INT WINAPI WS_getsockopt(SOCKET s, INT level,
SetLastError((errno == EBADF) ? WSAENOTSOCK : wsaErrno());
ret = SOCKET_ERROR;
}
/* BSD returns != 0 while Windows return exact == 1 */
if (*(int *)optval) *(int *)optval = 1;
else
{
/* BSD returns != 0 while Windows return exact == 1 */
if (*(int *)optval) *(int *)optval = 1;
}
release_sock_fd( s, fd );
return ret;
case WS_SO_DONTLINGER: