msi: Fix the SelectionPath event handler.
This commit is contained in:
parent
8c850a82d4
commit
b085b23b29
|
@ -692,12 +692,9 @@ void msi_dialog_handle_event( msi_dialog* dialog, LPCWSTR control,
|
||||||
}
|
}
|
||||||
else if ( !strcmpW( attribute, szSelectionPath ) )
|
else if ( !strcmpW( attribute, szSelectionPath ) )
|
||||||
{
|
{
|
||||||
LPWSTR prop = msi_dialog_dup_property( dialog, ctrl->property, TRUE );
|
LPWSTR path = msi_dialog_dup_property( dialog, ctrl->property, TRUE );
|
||||||
LPWSTR path;
|
if (!path) return;
|
||||||
if (!prop) return;
|
|
||||||
path = msi_dup_property( dialog->package->db, prop );
|
|
||||||
SetWindowTextW( ctrl->hwnd, path );
|
SetWindowTextW( ctrl->hwnd, path );
|
||||||
msi_free(prop);
|
|
||||||
msi_free(path);
|
msi_free(path);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue