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
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()); SetLastError((errno == EBADF) ? WSAENOTSOCK : wsaErrno());
ret = SOCKET_ERROR; ret = SOCKET_ERROR;
} }
else
/* BSD returns != 0 while Windows return exact == 1 */ {
if (*(int *)optval) *(int *)optval = 1; /* BSD returns != 0 while Windows return exact == 1 */
if (*(int *)optval) *(int *)optval = 1;
}
release_sock_fd( s, fd ); release_sock_fd( s, fd );
return ret; return ret;
case WS_SO_DONTLINGER: case WS_SO_DONTLINGER: