Jerome Leclanche : winhttp: Fix a warning when compiling --without-openssl.

Alexandre Julliard julliard at winehq.org
Mon Jun 20 14:24:09 CDT 2011


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

Author: Jerome Leclanche <adys.wh at gmail.com>
Date:   Mon Jun 20 07:01:47 2011 +0100

winhttp: Fix a warning when compiling --without-openssl.

---

 dlls/winhttp/net.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/winhttp/net.c b/dlls/winhttp/net.c
index 02ba1af..ecaba3d 100644
--- a/dlls/winhttp/net.c
+++ b/dlls/winhttp/net.c
@@ -735,8 +735,6 @@ BOOL netconn_send( netconn_t *conn, const void *msg, size_t len, int flags, int
 
 BOOL netconn_recv( netconn_t *conn, void *buf, size_t len, int flags, int *recvd )
 {
-    int ret;
-
     *recvd = 0;
     if (!netconn_connected( conn )) return FALSE;
     if (!len) return TRUE;
@@ -744,6 +742,8 @@ BOOL netconn_recv( netconn_t *conn, void *buf, size_t len, int flags, int *recvd
     if (conn->secure)
     {
 #ifdef SONAME_LIBSSL
+        int ret;
+
         if (flags & ~(MSG_PEEK | MSG_WAITALL))
             FIXME("SSL_read does not support the following flags: %08x\n", flags);
 




More information about the wine-cvs mailing list