diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2020-05-18 17:09:59 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-18 17:09:59 (GMT) |
commit | 460eac20a625d5dcef409dadc120a26d272a8013 (patch) | |
tree | 0a44e431d9a3c128e3ff0935928b7d47b25c63f9 /Python | |
parent | ab9d9535aad5e627cb9ae471f186e27a65e48c6e (diff) | |
download | cpython-460eac20a625d5dcef409dadc120a26d272a8013.zip cpython-460eac20a625d5dcef409dadc120a26d272a8013.tar.gz cpython-460eac20a625d5dcef409dadc120a26d272a8013.tar.bz2 |
bpo-35890: Use RegQueryInfoKeyW and CryptAcquireContextW explicitly (GH-19974)
(cherry picked from commit 98e42d1f882b9b59f587d538c562dbc7d11c64c3)
Co-authored-by: Minmin Gong <gongminmin@msn.com>
Diffstat (limited to 'Python')
-rw-r--r-- | Python/bootstrap_hash.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/bootstrap_hash.c b/Python/bootstrap_hash.c index 43f5264..eb2b6d0 100644 --- a/Python/bootstrap_hash.c +++ b/Python/bootstrap_hash.c @@ -38,8 +38,8 @@ static int win32_urandom_init(int raise) { /* Acquire context */ - if (!CryptAcquireContext(&hCryptProv, NULL, NULL, - PROV_RSA_FULL, CRYPT_VERIFYCONTEXT)) + if (!CryptAcquireContextW(&hCryptProv, NULL, NULL, + PROV_RSA_FULL, CRYPT_VERIFYCONTEXT)) goto error; return 0; |