From dcbaa1b49cd9062fb9ba2b9d49555ac6cd8c60b5 Mon Sep 17 00:00:00 2001 From: Steve Dower Date: Mon, 6 Jul 2020 17:32:00 +0100 Subject: 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 --- Python/dynload_win.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'Python/dynload_win.c') diff --git a/Python/dynload_win.c b/Python/dynload_win.c index 2bf3384b9e..8431c5b3b2 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) -- cgit v1.2.1