msi: Fix the SelectionPath event handler.

This commit is contained in:
Hans Leidekker 2011-07-23 09:53:14 +02:00 committed by Alexandre Julliard
parent 8c850a82d4
commit b085b23b29
1 changed files with 2 additions and 5 deletions

View File

@ -692,12 +692,9 @@ void msi_dialog_handle_event( msi_dialog* dialog, LPCWSTR control,
}
else if ( !strcmpW( attribute, szSelectionPath ) )
{
LPWSTR prop = msi_dialog_dup_property( dialog, ctrl->property, TRUE );
LPWSTR path;
if (!prop) return;
path = msi_dup_property( dialog->package->db, prop );
LPWSTR path = msi_dialog_dup_property( dialog, ctrl->property, TRUE );
if (!path) return;
SetWindowTextW( ctrl->hwnd, path );
msi_free(prop);
msi_free(path);
}
else