summaryrefslogtreecommitdiffstats
path: root/PC
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2006-07-24 10:26:33 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2006-07-24 10:26:33 (GMT)
commitbda0dde1c46c7f86c09f1b54d0b14125e9ab7f52 (patch)
tree9aaa09e3507d1af552ea3180c7d91731751c4517 /PC
parent8cab8b03e5a44acce3fb2c5416f877c3edcf9beb (diff)
downloadcpython-bda0dde1c46c7f86c09f1b54d0b14125e9ab7f52.zip
cpython-bda0dde1c46c7f86c09f1b54d0b14125e9ab7f52.tar.gz
cpython-bda0dde1c46c7f86c09f1b54d0b14125e9ab7f52.tar.bz2
Patch #1448199: Release GIL around ConnectRegistry.
Diffstat (limited to 'PC')
-rw-r--r--PC/_winreg.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/PC/_winreg.c b/PC/_winreg.c
index 007885c..b39411a 100644
--- a/PC/_winreg.c
+++ b/PC/_winreg.c
@@ -960,7 +960,9 @@ PyConnectRegistry(PyObject *self, PyObject *args)
return NULL;
if (!PyHKEY_AsHKEY(obKey, &hKey, FALSE))
return NULL;
+ Py_BEGIN_ALLOW_THREADS
rc = RegConnectRegistry(szCompName, hKey, &retKey);
+ Py_END_ALLOW_THREADS
if (rc != ERROR_SUCCESS)
return PyErr_SetFromWindowsErrWithFunction(rc,
"ConnectRegistry");