mirror of
https://github.com/reactos/wine.git
synced 2024-11-28 14:10:32 +00:00
ws2_32: Add missing else to getsockopt(SO_ACCEPTCONN).
This commit is contained in:
parent
c52eb21754
commit
cba19b9027
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user