find_dll_file ignoring WINEDLLPATH?

Erik de Castro Lopo erikd at
Sat Mar 29 20:50:33 CDT 2008

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

I'm willing to hack up a fix for this if someone can point me
in the right direction.

Erik de Castro Lopo
Open Source and Free Software means that you never sacrifice quality
of the code for meeting deadlines set up by people not participating
directly in the software development process.

More information about the wine-devel mailing list