James Hawkins : msi: Update the feature components' states when a feature is selected.

Alexandre Julliard julliard at wine.codeweavers.com
Tue Jul 18 05:13:29 CDT 2006


Module: wine
Branch: refs/heads/master
Commit: 7745a831a13adc0c8f55911009c3b2b57b8fa754
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=7745a831a13adc0c8f55911009c3b2b57b8fa754

Author: James Hawkins <truiken at gmail.com>
Date:   Mon Jul 17 15:17:38 2006 -0700

msi: Update the feature components' states when a feature is selected.

---

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

diff --git a/dlls/msi/dialog.c b/dlls/msi/dialog.c
index 2bb931f..d8e7cf5 100644
--- a/dlls/msi/dialog.c
+++ b/dlls/msi/dialog.c
@@ -1509,6 +1509,7 @@ static LRESULT
 msi_seltree_menu( HWND hwnd, HTREEITEM hItem )
 {
     MSIFEATURE *feature;
+    ComponentList *cl;
     union {
         RECT rc;
         POINT pt[2];
@@ -1545,6 +1546,13 @@ msi_seltree_menu( HWND hwnd, HTREEITEM h
     /* update */
     msi_seltree_sync_item_state( hwnd, feature, hItem );
 
+    /* update the feature's components */
+    LIST_FOR_EACH_ENTRY( cl, &feature->Components, ComponentList, entry )
+    {
+        cl->component->Action = feature->Action;
+        cl->component->ActionRequest = feature->ActionRequest;
+    }
+
     return 0;
 }
 




More information about the wine-cvs mailing list