]> granicus.if.org Git - curl/commitdiff
schannel: fix warning
authorJay Satiro <raysatiro@yahoo.com>
Tue, 17 Apr 2018 17:47:01 +0000 (13:47 -0400)
committerJay Satiro <raysatiro@yahoo.com>
Tue, 17 Apr 2018 19:43:30 +0000 (15:43 -0400)
- Fix warning 'integer from pointer without a cast' on 3rd arg in
  CertOpenStore. The arg type HCRYPTPROV may be a pointer or integer
  type of the same size.

Follow-up to e35b025.

Caught by Marc's CI builds.

lib/vtls/schannel.c

index cbcc9c532ceb39b3db37c869f37abc6c65941be1..4f3f0ce85fbfafc7c3e104d2290e03450327b999 100644 (file)
@@ -441,7 +441,8 @@ schannel_connect_step1(struct connectdata *conn, int sockindex)
         return result;
       }
 
-      cert_store = CertOpenStore(CURL_CERT_STORE_PROV_SYSTEM, 0, NULL,
+      cert_store = CertOpenStore(CURL_CERT_STORE_PROV_SYSTEM, 0,
+                                 (HCRYPTPROV)NULL,
                                  cert_store_name, cert_store_path);
       if(!cert_store) {
         Curl_unicodefree(cert_path);