summaryrefslogtreecommitdiffstats
path: root/PC/winreg.c
diff options
context:
space:
mode:
authorMinmin Gong <gongminmin@msn.com>2020-05-18 16:50:03 (GMT)
committerGitHub <noreply@github.com>2020-05-18 16:50:03 (GMT)
commit98e42d1f882b9b59f587d538c562dbc7d11c64c3 (patch)
treef2afcba632d5f1abbafcc694995211ca061470bb /PC/winreg.c
parentf660567937277cc3a2cd53af77bbb18e905427e8 (diff)
downloadcpython-98e42d1f882b9b59f587d538c562dbc7d11c64c3.zip
cpython-98e42d1f882b9b59f587d538c562dbc7d11c64c3.tar.gz
cpython-98e42d1f882b9b59f587d538c562dbc7d11c64c3.tar.bz2
bpo-35890: Use RegQueryInfoKeyW and CryptAcquireContextW explicitly (GH-19974)
Diffstat (limited to 'PC/winreg.c')
-rw-r--r--PC/winreg.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/PC/winreg.c b/PC/winreg.c
index 3e13e75..1305b70 100644
--- a/PC/winreg.c
+++ b/PC/winreg.c
@@ -1451,9 +1451,9 @@ winreg_QueryInfoKey_impl(PyObject *module, HKEY key)
if (PySys_Audit("winreg.QueryInfoKey", "n", (Py_ssize_t)key) < 0) {
return NULL;
}
- if ((rc = RegQueryInfoKey(key, NULL, NULL, 0, &nSubKeys, NULL, NULL,
- &nValues, NULL, NULL, NULL, &ft))
- != ERROR_SUCCESS) {
+ if ((rc = RegQueryInfoKeyW(key, NULL, NULL, 0, &nSubKeys, NULL, NULL,
+ &nValues, NULL, NULL, NULL, &ft))
+ != ERROR_SUCCESS) {
return PyErr_SetFromWindowsErrWithFunction(rc, "RegQueryInfoKey");
}
li.LowPart = ft.dwLowDateTime;