msi: Don't crash if there is no feature parent.

This commit is contained in:
Hans Leidekker 2010-11-03 15:04:07 +01:00 committed by Alexandre Julliard
parent 6f5421631c
commit aef0aa30fd
1 changed files with 5 additions and 1 deletions

View File

@ -2258,7 +2258,11 @@ msi_seltree_add_child_features( MSIPACKAGE *package, HWND hwnd,
LIST_FOR_EACH_ENTRY( feature, &package->features, MSIFEATURE, entry ) 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; continue;
if ( !feature->Title ) if ( !feature->Title )