Skip to content

Commit 94ed98b

Browse files
committed
Revert the changes on sys.audit
1 parent 28bf171 commit 94ed98b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

PC/winreg.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -977,9 +977,9 @@ winreg_CreateKeyEx_impl(PyObject *module, HKEY key, const wchar_t *sub_key,
977977
long rc;
978978
DWORD disposition;
979979

980-
if (PySys_Audit("winreg.CreateKey", "nunii",
980+
if (PySys_Audit("winreg.CreateKey", "nun",
981981
(Py_ssize_t)key, sub_key,
982-
(Py_ssize_t)access, options, create_only) < 0) {
982+
(Py_ssize_t)access) < 0) {
983983
return NULL;
984984
}
985985
rc = RegCreateKeyExW(key, sub_key, reserved, NULL, options,
@@ -1433,9 +1433,9 @@ winreg_OpenKey_impl(PyObject *module, HKEY key, const wchar_t *sub_key,
14331433
HKEY retKey;
14341434
long rc;
14351435

1436-
if (PySys_Audit("winreg.OpenKey", "nuni",
1436+
if (PySys_Audit("winreg.OpenKey", "nun",
14371437
(Py_ssize_t)key, sub_key,
1438-
(Py_ssize_t)access, options) < 0) {
1438+
(Py_ssize_t)access) < 0) {
14391439
return NULL;
14401440
}
14411441
if (options != 0) {

0 commit comments

Comments
 (0)