10000 bpo-36085: Add additional load flag to ensure DLL loads successfully … · python/cpython@ac19d96 · GitHub
[go: up one dir, main page]

Skip to content

Commit ac19d96

Browse files
authored
bpo-36085: Add additional load flag to ensure DLL loads successfully (GH-12633)
1 parent e724152 commit ac19d96

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Lib/ctypes/test/test_loading.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,8 @@ def should_fail(command):
167167

168168
# Full path load with DLL_LOAD_DIR should succeed
169169
should_pass("WinDLL(nt._getfullpathname('_sqlite3.dll'), " +
170-
"winmode=nt._LOAD_LIBRARY_SEARCH_DLL_LOAD_DIR)")
170+
"winmode=nt._LOAD_LIBRARY_SEARCH_SYSTEM32|" +
171+
"nt._LOAD_LIBRARY_SEARCH_DLL_LOAD_DIR)")
171172

172173
# User-specified directory should succeed
173174
should_pass("import os; p = os.add_dll_directory(os.getcwd());" +

0 commit comments

Comments
 (0)
0