summaryrefslogtreecommitdiffstats
path: root/PCbuild
diff options
context:
space:
mode:
authorSteve Dower <steve.dower@python.org>2020-01-29 02:46:33 (GMT)
committerGitHub <noreply@github.com>2020-01-29 02:46:33 (GMT)
commit6a65eba44bfd82ccc8bed4b5c6dd6637549955d5 (patch)
tree3a6b929751e3c7275e78c54804a56d806d32950c /PCbuild
parent0cd5bff6b7da3118d0c5a88fc2b80f80eb7c3059 (diff)
downloadcpython-6a65eba44bfd82ccc8bed4b5c6dd6637549955d5.zip
cpython-6a65eba44bfd82ccc8bed4b5c6dd6637549955d5.tar.gz
cpython-6a65eba44bfd82ccc8bed4b5c6dd6637549955d5.tar.bz2
bpo-39401: Avoid unsafe DLL load on Windows 7 and earlier (GH-18231)
As Windows 7 is not supported by Python 3.9, we just replace the dynamic load with a static import. Backports will have a different fix to ensure they continue to behave the same.
Diffstat (limited to 'PCbuild')
-rw-r--r--PCbuild/pythoncore.vcxproj2
1 files changed, 1 insertions, 1 deletions
diff --git a/PCbuild/pythoncore.vcxproj b/PCbuild/pythoncore.vcxproj
index f5be8aa..cfab2fa 100644
--- a/PCbuild/pythoncore.vcxproj
+++ b/PCbuild/pythoncore.vcxproj
@@ -106,7 +106,7 @@
<PreprocessorDefinitions Condition="$(IncludeExternals)">_Py_HAVE_ZLIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
<Link>
- <AdditionalDependencies>version.lib;shlwapi.lib;ws2_32.lib;%(AdditionalDependencies)</AdditionalDependencies>
+ <AdditionalDependencies>version.lib;shlwapi.lib;ws2_32.lib;pathcch.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
<ItemGroup>