Commit cba19b90 authored by Bruno Jesus's avatar Bruno Jesus Committed by Alexandre Julliard

ws2_32: Add missing else to getsockopt(SO_ACCEPTCONN).

parent c52eb217
......@@ -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:
......
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