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