[1/4] msi: Don't crash if there is no feature parent.
Hans Leidekker
hans at codeweavers.com
Wed Nov 3 09:04:07 CDT 2010
Should fix http://bugs.winehq.org/show_bug.cgi?id=24970
---
dlls/msi/dialog.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/dlls/msi/dialog.c b/dlls/msi/dialog.c
index 1221531..a68d953 100644
--- a/dlls/msi/dialog.c
+++ b/dlls/msi/dialog.c
@@ -2258,7 +2258,11 @@ msi_seltree_add_child_features( MSIPACKAGE *package, HWND hwnd,
LIST_FOR_EACH_ENTRY( feature, &package->features, MSIFEATURE, entry )
{
- if ( strcmpW( parent, feature->Feature_Parent ) )
+ if ( parent && feature->Feature_Parent && strcmpW( parent, feature->Feature_Parent ))
+ continue;
+ else if ( parent && !feature->Feature_Parent )
+ continue;
+ else if ( !parent && feature->Feature_Parent )
continue;
if ( !feature->Title )
--
1.7.1
More information about the wine-patches
mailing list