mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
msi: Don't crash if there is no feature parent.
This commit is contained in:
parent
6f5421631c
commit
aef0aa30fd
1 changed files with 5 additions and 1 deletions
|
@ -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 )
|
||||
|
|
Loading…
Reference in a new issue