msi: Don't crash if we can't find a control.

This commit is contained in:
Mike McCormack 2006-08-30 20:08:09 +09:00 committed by Alexandre Julliard
parent f9042ec9e8
commit 7a120c99ea
1 changed files with 2 additions and 0 deletions

View File

@ -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 );