msi: Fix the SelectionPath event handler.

Hans Leidekker hans at codeweavers.com
Sat Jul 23 02:53:14 CDT 2011


Fixes http://bugs.winehq.org/show_bug.cgi?id=10211
---
 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
-- 
1.7.4.1






More information about the wine-patches mailing list