summaryrefslogtreecommitdiffstats
path: root/Python/dynload_win.c
diff options
context:
space:
mode:
authorSteve Dower <steve.dower@python.org>2020-07-06 16:32:00 (GMT)
committerGitHub <noreply@github.com>2020-07-06 16:32:00 (GMT)
commitdcbaa1b49cd9062fb9ba2b9d49555ac6cd8c60b5 (patch)
tree4b1d3d5130de1db92de3240f4decc656ee7247ef /Python/dynload_win.c
parentdeb016224cc506503fb05e821a60158c83918ed4 (diff)
downloadcpython-dcbaa1b49cd9062fb9ba2b9d49555ac6cd8c60b5.zip
cpython-dcbaa1b49cd9062fb9ba2b9d49555ac6cd8c60b5.tar.gz
cpython-dcbaa1b49cd9062fb9ba2b9d49555ac6cd8c60b5.tar.bz2
bpo-29778: Ensure python3.dll is loaded from correct locations when Python is embedded (GH-21297)
Also enables using debug build of `python3_d.dll` Reference: CVE-2020-15523
Diffstat (limited to 'Python/dynload_win.c')
-rw-r--r--Python/dynload_win.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/Python/dynload_win.c b/Python/dynload_win.c
index 2bf3384..8431c5b 100644
--- a/Python/dynload_win.c
+++ b/Python/dynload_win.c
@@ -168,9 +168,7 @@ dl_funcptr _PyImport_FindSharedFuncptrWindows(const char *prefix,
char funcname[258], *import_python;
const wchar_t *wpathname;
-#ifndef _DEBUG
_Py_CheckPython3();
-#endif
wpathname = _PyUnicode_AsUnicode(pathname);
if (wpathname == NULL)