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

View file

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