Commit 566e67a4 authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

msi: Components don't require a key path.

parent aef0aa30
......@@ -3358,10 +3358,11 @@ static UINT ITERATE_RegisterTypeLibraries(MSIRECORD *row, LPVOID param)
}
comp->Action = INSTALLSTATE_LOCAL;
file = get_loaded_file( package, comp->KeyPath );
if (!file)
if (!comp->KeyPath || !(file = get_loaded_file( package, comp->KeyPath )))
{
TRACE("component has no key path\n");
return ERROR_SUCCESS;
}
ui_actiondata( package, szRegisterTypeLibraries, row );
module = LoadLibraryExW( file->TargetPath, NULL, LOAD_LIBRARY_AS_DATAFILE );
......
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