msi: Don't crash if we can't find a control.
This commit is contained in:
parent
f9042ec9e8
commit
7a120c99ea
|
@ -1425,6 +1425,8 @@ static void msi_dialog_update_pathedit( msi_dialog *dialog )
|
||||||
BOOL indirect;
|
BOOL indirect;
|
||||||
|
|
||||||
control = msi_dialog_find_control( dialog, szPathEdit );
|
control = msi_dialog_find_control( dialog, szPathEdit );
|
||||||
|
if (!control)
|
||||||
|
return;
|
||||||
indirect = control->attributes & msidbControlAttributesIndirect;
|
indirect = control->attributes & msidbControlAttributesIndirect;
|
||||||
prop = msi_dialog_dup_property( dialog, control->property, indirect );
|
prop = msi_dialog_dup_property( dialog, control->property, indirect );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue