Commit fc8b376a authored by Alexandre Julliard's avatar Alexandre Julliard

Return right away from import_dll when a dll is not found to avoid

displaying many useless function errors.
parent b3b12cff
...@@ -363,20 +363,17 @@ static WINE_MODREF *import_dll( HMODULE module, IMAGE_IMPORT_DESCRIPTOR *descr, ...@@ -363,20 +363,17 @@ static WINE_MODREF *import_dll( HMODULE module, IMAGE_IMPORT_DESCRIPTOR *descr,
if (status) if (status)
{ {
if (status == STATUS_DLL_NOT_FOUND) if (status == STATUS_DLL_NOT_FOUND)
ERR("Module (file) %s (which is needed by %s) not found\n", ERR("Library %s (which is needed by %s) not found\n",
name, debugstr_w(current_modref->ldr.FullDllName.Buffer)); name, debugstr_w(current_modref->ldr.FullDllName.Buffer));
else else
ERR("Loading module (file) %s (which is needed by %s) failed (error %lx).\n", ERR("Loading library %s (which is needed by %s) failed (error %lx).\n",
name, debugstr_w(current_modref->ldr.FullDllName.Buffer), status); name, debugstr_w(current_modref->ldr.FullDllName.Buffer), status);
imp_mod = NULL; return NULL;
exports = NULL;
}
else
{
imp_mod = wmImp->ldr.BaseAddress;
exports = RtlImageDirectoryEntryToData( imp_mod, TRUE, IMAGE_DIRECTORY_ENTRY_EXPORT, &exp_size );
} }
imp_mod = wmImp->ldr.BaseAddress;
exports = RtlImageDirectoryEntryToData( imp_mod, TRUE, IMAGE_DIRECTORY_ENTRY_EXPORT, &exp_size );
if (!exports) if (!exports)
{ {
/* set all imported function to deadbeef */ /* set all imported function to deadbeef */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment