ntdll/kernel32: LoadLibrary fails to load some dependent libs

Vitaliy Margolen wine-devel at kievinfo.com
Fri Apr 6 23:16:01 CDT 2007


Clinton Stimpson wrote:
> 
> So I have this case:
> An application that can load libraries at runtime (plugins).
> Plugins reside in a different directory than the application directory.
> Some plugins have dependent dlls found only in the plugin directory.
> Wine fails to load the dependent dlls.
> I can copy the dependent dlls into the application directory and the
> plugins load successfully.
How are you starting your application? With what exact command from what
directory?

Also please check if you have
[HKLM\Software\Microsoft\Windows\CurrentVersion\App Paths\<app.exe>] key
and if you have, try running you program with the following command
(replacing "app.exe" with the executable name):
cd ~ && wine start app.exe

> I traced the execution into ntdll/loader.c : load_native_dll
> load_path included the the application directory and some system paths.
> name is the full path of the library to load.
> The call to fixup_imports fails.
> Should the path to the library be added to load_path in
> load_native_dll?  Or is there another appropriate way to fix this?
This doesn't sound to be correct. You need to make a test first and
verify it's functionality on windows first.

Vitaliy



More information about the wine-devel mailing list