Mercurial > cpython-lru_cache-weakref
diff Python/importdl.c @ 9299:d64200834a6b legacy-trunk
On Win32, use
LoadLibraryEx(pathname, NULL, LOAD_WITH_ALTERED_SEARCH_PATH)
to search dependent DLLs in the directory of the pathname.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Thu, 08 Oct 1998 01:44:41 +0000 |
| parents | 0858f11c88d7 |
| children | 7f242f29a45f |
line wrap: on
line diff
--- a/Python/importdl.c Wed Oct 07 22:51:56 1998 +0000 +++ b/Python/importdl.c Thu Oct 08 01:44:41 1998 +0000 @@ -493,7 +493,10 @@ sprintf(p, ".\\%-.255s", pathname); pathname = pathbuf; } - hDLL = LoadLibrary(pathname); + /* Look for dependent DLLs in directory of pathname first */ + /* XXX This call doesn't exist in Windows CE */ + hDLL = LoadLibraryEx(pathname, NULL, + LOAD_WITH_ALTERED_SEARCH_PATH); if (hDLL==NULL){ char errBuf[256]; unsigned int errorCode;
