ws2_32: Avoid a FALSE:TRUE conditional expression.

Michael Stefaniuc mstefani at redhat.de
Tue Aug 14 16:16:41 CDT 2012


---
 dlls/ws2_32/socket.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/ws2_32/socket.c b/dlls/ws2_32/socket.c
index 212733b..ca5d0e4 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);
             }
 
-- 
1.7.7.6



More information about the wine-patches mailing list