1.0 idea - ntdll - add a messagebox for missing dlls

Peter Beutner p.beutner at gmx.net
Tue Apr 29 12:28:32 CDT 2008


Steven Edwards schrieb:
> On Tue, Apr 29, 2008 at 10:44 AM, Paul Chitescu <paulc at voip.null.ro> wrote:
>>  Windows doesn't do that - when my application tries to load a module that
>>  links against a missing DLL then LoadLibrary simply fails without showing
>>  any message. The "ignore it if LoadLibrary fails" logic is common in many
>>  programs that use optional plugins.
> 
> Then that would mean my patch is still correct. If LoadLibrary calls
> foo.dll which is present but xyz.dll is missing then LoadLibrary is
> still going to fail which will not trigger this case.
> 

LoadLibrary will fail but the msg box will be displayed.
just try:

int main(int argc, char **argv)
{
        HMODULE hmod;

        hmod = LoadLibrary("cryptnet.dll");

        return 0;
}

then remove/rename crypt32.dll.so(which is imported by cryptnet.dll) and run

wine start.exe /unix test.exe

And the msg box will pop up.



More information about the wine-devel mailing list