From b085b23b298927ea69be9c3ecb7bb3bb24249e5c Mon Sep 17 00:00:00 2001 From: Hans Leidekker Date: Sat, 23 Jul 2011 09:53:14 +0200 Subject: [PATCH] msi: Fix the SelectionPath event handler. --- dlls/msi/dialog.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/dlls/msi/dialog.c b/dlls/msi/dialog.c index 0ea689d230b..e2a1aac7521 100644 --- a/dlls/msi/dialog.c +++ b/dlls/msi/dialog.c @@ -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