diff --git a/Modules/_ssl.c b/Modules/_ssl.c index f84ef92a188..6b43d226829 100644 --- a/Modules/_ssl.c +++ b/Modules/_ssl.c @@ -3080,7 +3080,7 @@ PySSL_enum_cert_store(PyObject *self, PyObject *args, PyObject *kwds) return NULL; } - if ((hStore = CertOpenSystemStore(NULL, store_name)) == NULL) { + if ((hStore = CertOpenSystemStore((HCRYPTPROV)NULL, store_name)) == NULL) { Py_DECREF(result); return PyErr_SetFromWindowsErr(GetLastError()); }