Hans Leidekker : msi: Fix the SelectionPath event handler.
Alexandre Julliard
julliard at winehq.org
Mon Jul 25 11:43:07 CDT 2011
Module: wine
Branch: master
Commit: b085b23b298927ea69be9c3ecb7bb3bb24249e5c
URL: http://source.winehq.org/git/wine.git/?a=commit;h=b085b23b298927ea69be9c3ecb7bb3bb24249e5c
Author: Hans Leidekker <hans at codeweavers.com>
Date: Sat Jul 23 09:53:14 2011 +0200
msi: Fix the SelectionPath event handler.
---
dlls/msi/dialog.c | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
diff --git a/dlls/msi/dialog.c b/dlls/msi/dialog.c
index 0ea689d..e2a1aac 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
More information about the wine-cvs
mailing list