msi: Avoid a crash in msi_dialog_handle_event.

This commit is contained in:
Hans Leidekker 2013-01-30 16:27:54 +01:00 committed by Alexandre Julliard
parent 71f0dd6044
commit 8df6708af4

View file

@ -692,7 +692,7 @@ void msi_dialog_handle_event( msi_dialog* dialog, LPCWSTR control,
else if ( !strcmpW( attribute, szProperty ) )
{
MSIFEATURE *feature = msi_seltree_get_selected_feature( ctrl );
msi_dialog_set_property( dialog->package, ctrl->property, feature->Directory );
if (feature) msi_dialog_set_property( dialog->package, ctrl->property, feature->Directory );
}
else if ( !strcmpW( attribute, szSelectionPath ) )
{