Commit 4d660fdc authored by Jay Satiro's avatar Jay Satiro
Browse files

schannel: fix warning

- 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 e35b0256.

Caught by Marc's CI builds.
parent 24e83558
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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);