James Hawkins : msi: Translate the INSTALLSTATE_UNKNOWN index into the INSTALLSTATE_ABSENT image index .

Alexandre Julliard julliard at wine.codeweavers.com
Mon Sep 25 09:46:44 CDT 2006


Module: wine
Branch: master
Commit: 703d77dc58a032b08dc222de951474a7f28f8fac
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=703d77dc58a032b08dc222de951474a7f28f8fac

Author: James Hawkins <truiken at gmail.com>
Date:   Wed Sep 20 19:58:06 2006 -0700

msi: Translate the INSTALLSTATE_UNKNOWN index into the INSTALLSTATE_ABSENT image index.

---

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

diff --git a/dlls/msi/dialog.c b/dlls/msi/dialog.c
index 1f15f40..8ebeb09 100644
--- a/dlls/msi/dialog.c
+++ b/dlls/msi/dialog.c
@@ -1651,13 +1651,17 @@ static void
 msi_seltree_sync_item_state( HWND hwnd, MSIFEATURE *feature, HTREEITEM hItem )
 {
     TVITEMW tvi;
+    DWORD index = feature->Action;
 
     TRACE("Feature %s -> %d %d %d\n", debugstr_w(feature->Title),
         feature->Installed, feature->Action, feature->ActionRequest);
 
+    if (index == INSTALLSTATE_UNKNOWN)
+        index = INSTALLSTATE_ABSENT;
+
     tvi.mask = TVIF_STATE;
     tvi.hItem = hItem;
-    tvi.state = INDEXTOSTATEIMAGEMASK( feature->Action );
+    tvi.state = INDEXTOSTATEIMAGEMASK( index );
     tvi.stateMask = TVIS_STATEIMAGEMASK;
 
     SendMessageW( hwnd, TVM_SETITEMW, 0, (LPARAM) &tvi );




More information about the wine-cvs mailing list