msi [8/12]: Properly initialize the SelectionTree control's attributes and property values

James Hawkins truiken at gmail.com
Tue Oct 3 17:02:44 CDT 2006


Hi,

Changelog:
* Properly initialize the SelectionTree control's attributes and
property values.

 dlls/msi/dialog.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

-- 
James Hawkins
-------------- next part --------------
diff --git a/dlls/msi/dialog.c b/dlls/msi/dialog.c
index 940939f..91be275 100644
--- a/dlls/msi/dialog.c
+++ b/dlls/msi/dialog.c
@@ -1899,7 +1899,6 @@ static UINT msi_dialog_selection_tree( m
         return ERROR_FUNCTION_FAILED;
 
     /* create the treeview control */
-    prop = MSI_RecordGetString( rec, 9 );
     style = TVS_HASLINES | TVS_HASBUTTONS | TVS_LINESATROOT;
     style |= WS_GROUP | WS_VSCROLL;
     control = msi_dialog_add_control( dialog, rec, WC_TREEVIEWW, style );
@@ -1909,6 +1908,10 @@ static UINT msi_dialog_selection_tree( m
         return ERROR_FUNCTION_FAILED;
     }
 
+    control->attributes = MSI_RecordGetInteger( rec, 8 );
+    prop = MSI_RecordGetString( rec, 9 );
+    control->property = msi_dialog_dup_property( dialog, prop, FALSE );
+
     /* subclass */
     info->dialog = dialog;
     info->hwnd = control->hwnd;
-- 
1.4.2.1


More information about the wine-patches mailing list