From 703d77dc58a032b08dc222de951474a7f28f8fac Mon Sep 17 00:00:00 2001 From: James Hawkins <truiken@gmail.com> Date: Wed, 20 Sep 2006 19:58:06 -0700 Subject: [PATCH] msi: Translate the INSTALLSTATE_UNKNOWN index into the INSTALLSTATE_ABSENT image index. --- dlls/msi/dialog.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dlls/msi/dialog.c b/dlls/msi/dialog.c index 1f15f4076d3..8ebeb097812 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 ); -- GitLab