mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
Issue21393 Use CryptReleaseContext to release Crypt handle on Windows
This commit is contained in:
parent
e0bd2c5fad
commit
b8ac3e1a20
1 changed files with 1 additions and 1 deletions
|
@ -298,7 +298,7 @@ _PyRandom_Fini(void)
|
||||||
{
|
{
|
||||||
#ifdef MS_WINDOWS
|
#ifdef MS_WINDOWS
|
||||||
if (hCryptProv) {
|
if (hCryptProv) {
|
||||||
CloseHandle(hCryptProv);
|
CryptReleaseContext(hCryptProv, 0);
|
||||||
hCryptProv = 0;
|
hCryptProv = 0;
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue