Commit 7e6850ce authored by Guido van Rossum's avatar Guido van Rossum

On Win32, use

LoadLibraryEx(pathname, NULL, LOAD_WITH_ALTERED_SEARCH_PATH)
to search dependent DLLs in the directory of the pathname.
parent 73de68ce
......@@ -493,7 +493,10 @@ _PyImport_LoadDynamicModule(name, pathname, fp)
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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment