msi: Don't crash if there is no feature parent.
This commit is contained in:
parent
6f5421631c
commit
aef0aa30fd
|
@ -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 )
|
||||||
|
|
Loading…
Reference in New Issue