msi: Components don't require a key path.

This commit is contained in:
Hans Leidekker 2010-11-03 15:04:49 +01:00 committed by Alexandre Julliard
parent aef0aa30fd
commit 566e67a491
1 changed files with 4 additions and 3 deletions

View File

@ -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 );