Hans Leidekker : msi: Components don't require a key path.
Alexandre Julliard
julliard at winehq.org
Wed Nov 3 11:37:09 CDT 2010
Module: wine
Branch: master
Commit: 566e67a491306e31e21773252255e9d04b9d7737
URL: http://source.winehq.org/git/wine.git/?a=commit;h=566e67a491306e31e21773252255e9d04b9d7737
Author: Hans Leidekker <hans at codeweavers.com>
Date: Wed Nov 3 15:04:49 2010 +0100
msi: Components don't require a key path.
---
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 );
More information about the wine-cvs
mailing list