[2/4] msi: Components don't require a key path.
Hans Leidekker
hans at codeweavers.com
Wed Nov 3 09:04:49 CDT 2010
---
dlls/msi/action.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/dlls/msi/action.c b/dlls/msi/action.c
index 3ebf286..8a25c1a 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 );
--
1.7.1
More information about the wine-patches
mailing list