From 566e67a491306e31e21773252255e9d04b9d7737 Mon Sep 17 00:00:00 2001 From: Hans Leidekker Date: Wed, 3 Nov 2010 15:04:49 +0100 Subject: [PATCH] msi: Components don't require a key path. --- dlls/msi/action.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/dlls/msi/action.c b/dlls/msi/action.c index 3ebf286f562..8a25c1a9be7 100644 --- a/dlls/msi/action.c +++ b/dlls/msi/action.c @@ -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 );