diff --git a/dlls/ws2_32/socket.c b/dlls/ws2_32/socket.c index 212733bf60b..ca5d0e42e92 100644 --- a/dlls/ws2_32/socket.c +++ b/dlls/ws2_32/socket.c @@ -2544,7 +2544,7 @@ INT WINAPI WS_getsockopt(SOCKET s, INT level, } else { - *(BOOL *)optval = (lingval.l_onoff) ? FALSE : TRUE; + *(BOOL *)optval = !lingval.l_onoff; *optlen = sizeof(BOOL); }