Commit a3ff624b authored by Alexandre Julliard's avatar Alexandre Julliard

ntdll: Skip dependency only for the actually loaded ntdll and kernel32, instead…

ntdll: Skip dependency only for the actually loaded ntdll and kernel32, instead of matching by name.
parent b0d57e5f
......@@ -1404,14 +1404,9 @@ static NTSTATUS fixup_imports( WINE_MODREF *wm, LPCWSTR load_path )
{
dep_after = wm->ldr.DdagNode->Dependencies.Tail;
if (!import_dll( wm->ldr.DllBase, &imports[i], load_path, &imp ))
{
imp = NULL;
status = STATUS_DLL_NOT_FOUND;
}
else if (imp && !is_import_dll_system( &wm->ldr, &imports[i] ))
{
else if (imp && imp->ldr.DdagNode != node_ntdll && imp->ldr.DdagNode != node_kernel32)
add_module_dependency_after( wm->ldr.DdagNode, imp->ldr.DdagNode, dep_after );
}
}
current_modref = prev;
if (wm->ldr.ActivationContext) RtlDeactivateActivationContext( 0, cookie );
......
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