James Hawkins : msi: Properly initialize the SelectionTree control'
s attributes and property values.
Alexandre Julliard
julliard at wine.codeweavers.com
Wed Oct 4 04:25:22 CDT 2006
Module: wine
Branch: master
Commit: de0efba366ede0f1f3cd62fc114aefe51ebe05fc
URL: http://source.winehq.org/git/wine.git/?a=commit;h=de0efba366ede0f1f3cd62fc114aefe51ebe05fc
Author: James Hawkins <truiken at gmail.com>
Date: Tue Oct 3 15:02:44 2006 -0700
msi: Properly initialize the SelectionTree control's attributes and property values.
---
dlls/msi/dialog.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
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;
More information about the wine-cvs
mailing list