Give a more informative error when a DLL fails to initialize
Mike Hearn
mh at codeweavers.com
Wed Dec 22 12:19:47 CST 2004
Give a more informative error when a DLL fails to initialize
-------------- next part --------------
--- dlls/ntdll/loader.c (revision 3)
+++ dlls/ntdll/loader.c (local)
@@ -893,9 +893,14 @@ static NTSTATUS process_attach( WINE_MOD
WINE_MODREF *prev = current_modref;
current_modref = wm;
if (MODULE_InitDLL( wm, DLL_PROCESS_ATTACH, lpReserved ))
+ {
wm->ldr.Flags |= LDR_PROCESS_ATTACHED;
+ }
else
+ {
+ ERR("Initialization of %s failed\n", debugstr_w(wm->ldr.BaseDllName.Buffer));
status = STATUS_DLL_INIT_FAILED;
+ }
current_modref = prev;
}
More information about the wine-patches
mailing list