1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-23 16:48:49 -05:00

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

Caught by Marc's CI builds.
This commit is contained in:
Jay Satiro 2018-04-17 13:47:01 -04:00
parent 24e8355877
commit 4d660fdcb0

View File

@ -441,7 +441,8 @@ schannel_connect_step1(struct connectdata *conn, int sockindex)
return result; 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); cert_store_name, cert_store_path);
if(!cert_store) { if(!cert_store) {
Curl_unicodefree(cert_path); Curl_unicodefree(cert_path);