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

Alexandre Julliard julliard at winehq.org
Mon May 17 09:39:30 CDT 2010


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

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Mon May 17 01:11:43 2010 +0200

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

---

 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;




More information about the wine-cvs mailing list