winhttp: Remove redundant "not 0" test of argument len.

Michael Stefaniuc mstefani at redhat.de
Sun May 16 18:11:43 CDT 2010


It was tested already at the beginning of the function. Found by
coccicheck.
---
 dlls/winhttp/net.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/winhttp/net.c b/dlls/winhttp/net.c
index 455ee55..5890c06 100644
--- a/dlls/winhttp/net.c
+++ b/dlls/winhttp/net.c
@@ -736,7 +736,7 @@ BOOL netconn_recv( netconn_t *conn, void *buf, size_t len, int flags, int *recvd
             }
             else memcpy( conn->peek_msg, buf, *recvd );
         }
-        if (*recvd < 1 && len) return FALSE;
+        if (*recvd < 1) return FALSE;
         return TRUE;
 #else
         return FALSE;
-- 
1.7.1



More information about the wine-patches mailing list