ws2_32: Add missing else to getsockopt(SO_ACCEPTCONN).

oldstable
Bruno Jesus 2013-09-21 15:44:57 -03:00 committed by Alexandre Julliard
parent c52eb21754
commit cba19b9027
1 changed files with 5 additions and 4 deletions

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: