1 --- Python-3.9.14-ref/Python/dynload_win.c 2022-09-06 19:26:16.000000000 +0200
2 +++ Python-3.9.14-new/Python/dynload_win.c 2024-04-03 17:08:02.000000000 +0200
4 AddDllDirectory function. We add SEARCH_DLL_LOAD_DIR to
5 ensure DLLs adjacent to the PYD are preferred. */
7 - hDLL = LoadLibraryExW(wpathname, NULL,
8 - LOAD_LIBRARY_SEARCH_DEFAULT_DIRS |
9 - LOAD_LIBRARY_SEARCH_DLL_LOAD_DIR);
10 + hDLL = LoadLibraryExW(wpathname, NULL,LOAD_WITH_ALTERED_SEARCH_PATH);
13 /* restore old error mode settings */