ws2_32: Avoid a FALSE:TRUE conditional expression.

This commit is contained in:
Michael Stefaniuc 2012-08-14 23:16:41 +02:00 committed by Alexandre Julliard
parent c0cfc9a87a
commit 6132ed66a6

View File

@ -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);
}