diff options
| author | Minmin Gong <gongminmin@msn.com> | 2020-05-18 16:50:03 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-18 16:50:03 (GMT) |
| commit | 98e42d1f882b9b59f587d538c562dbc7d11c64c3 (patch) | |
| tree | f2afcba632d5f1abbafcc694995211ca061470bb /Python | |
| parent | f660567937277cc3a2cd53af77bbb18e905427e8 (diff) | |
| download | cpython-98e42d1f882b9b59f587d538c562dbc7d11c64c3.zip cpython-98e42d1f882b9b59f587d538c562dbc7d11c64c3.tar.gz cpython-98e42d1f882b9b59f587d538c562dbc7d11c64c3.tar.bz2 | |
bpo-35890: Use RegQueryInfoKeyW and CryptAcquireContextW explicitly (GH-19974)
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 aa3a3df..b210927 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; |
