msi: Respect the indirect attribute in the SelectionPath event handler.

This commit is contained in:
Hans Leidekker 2011-09-09 10:59:18 +02:00 committed by Alexandre Julliard
parent 8f3dabf3c4
commit f618eb2860
1 changed files with 2 additions and 1 deletions

View File

@ -691,7 +691,8 @@ void msi_dialog_handle_event( msi_dialog* dialog, LPCWSTR control,
}
else if ( !strcmpW( attribute, szSelectionPath ) )
{
LPWSTR path = msi_dialog_dup_property( dialog, ctrl->property, TRUE );
BOOL indirect = ctrl->attributes & msidbControlAttributesIndirect;
LPWSTR path = msi_dialog_dup_property( dialog, ctrl->property, indirect );
if (!path) return;
SetWindowTextW( ctrl->hwnd, path );
msi_free(path);