Michael Stefaniuc : ws2_32: Avoid a FALSE:TRUE conditional expression.

Alexandre Julliard julliard at winehq.org
Wed Aug 15 14:08:31 CDT 2012


Module: wine
Branch: master
Commit: 6132ed66a61b05754ad6e40cd3af222506df5e25
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=6132ed66a61b05754ad6e40cd3af222506df5e25

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Tue Aug 14 23:16:41 2012 +0200

ws2_32: Avoid a FALSE:TRUE conditional expression.

---

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




More information about the wine-cvs mailing list