Erik de Castro Lopo wrote:
It seems that this function makes no use of WINEDLLPATH. Shouldn't this function also search along the paths specified by the environment variable?
I've grepped the sources and the only place that looks at WINEDLLPATH is the funcion build_dll_path() in libs/wine/loader.c.
The function build_dll_path() fills in an array dll_paths with is private to that file. Looking at other things in that file it seems that stuff in that file is mostly related to loading the native Linux versions of the windows DLLs. Is that right? If so, it looks like some of the code in libs/wine/loader.c needs to be cloned or shared with the code in dlls/ntdll/loader.c.
I'm willing to hack up a fix for this if someone can point me in the right direction.
Cheers, Erik