Commit b085b23b authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

msi: Fix the SelectionPath event handler.

parent 8c850a82
...@@ -692,12 +692,9 @@ void msi_dialog_handle_event( msi_dialog* dialog, LPCWSTR control, ...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment