Alexandre Julliard : winhttp: Fix pointer cast warnings on 64-bit.

Alexandre Julliard julliard at winehq.org
Thu Dec 24 10:27:16 CST 2009


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

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Wed Dec 23 21:25:42 2009 +0100

winhttp: Fix pointer cast warnings on 64-bit.

---

 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 3faa41c..dd8b56c 100644
--- a/dlls/winhttp/net.c
+++ b/dlls/winhttp/net.c
@@ -361,7 +361,7 @@ static int netconn_secure_verify( int preverify_ok, X509_STORE_CTX *ctx )
             if (!endCert) ret = FALSE;
             if (ret)
             {
-                DWORD err = netconn_verify_cert( endCert, store, server );
+                DWORD_PTR err = netconn_verify_cert( endCert, store, server );
 
                 if (err)
                 {
@@ -641,7 +641,7 @@ BOOL netconn_secure_connect( netconn_t *conn, WCHAR *hostname )
     {
         DWORD err;
 
-        err = (DWORD)pSSL_get_ex_data( conn->ssl_conn, error_idx );
+        err = (DWORD_PTR)pSSL_get_ex_data( conn->ssl_conn, error_idx );
         if (!err) err = ERROR_WINHTTP_SECURE_CHANNEL_ERROR;
         ERR("couldn't verify server certificate (%d)\n", err);
         set_last_error( err );




More information about the wine-cvs mailing list