[Wine-patches] msi: Never set INSTALLSTATE_UNKNOWN if INSTALLSTATE_ABSENT is selected (eterbug #948).

Alexander Morozov amorozov на etersoft.ru
Пн Ноя 16 20:02:27 MSK 2009


----------- следующая часть -----------
From 901babb5d38a73d20f05e5b0d8d3fd5edfd8bce6 Mon Sep 17 00:00:00 2001
From: Alexander Morozov <amorozov на etersoft.ru>
Date: Mon, 16 Nov 2009 19:21:36 +0300
Subject: [PATCH] msi: Never set INSTALLSTATE_UNKNOWN if INSTALLSTATE_ABSENT is selected (eterbug #948).

---
 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 34dc464..6b77c6f 100644
--- a/dlls/msi/dialog.c
+++ b/dlls/msi/dialog.c
@@ -1945,9 +1945,12 @@ msi_seltree_menu( HWND hwnd, HTREEITEM hItem )
     {
     case INSTALLSTATE_LOCAL:
     case INSTALLSTATE_ADVERTISED:
-    case INSTALLSTATE_ABSENT:
         msi_feature_set_state(package, feature, r);
         break;
+    case INSTALLSTATE_ABSENT:
+        feature->ActionRequest = INSTALLSTATE_ABSENT;
+        feature->Action = INSTALLSTATE_ABSENT;
+        break;
     default:
         FIXME("select feature and all children\n");
     }
-- 
1.6.4.4



Подробная информация о списке рассылки Wine-patches