[Wine-patches] [eterhack 4/6] msi: Reset all flags before setting (eterbug #953).

Alexander Morozov amorozov на etersoft.ru
Пт Авг 14 16:21:47 MSD 2009


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

diff --git a/dlls/msi/action.c b/dlls/msi/action.c
index df95bd4..ad9813c 100644
--- a/dlls/msi/action.c
+++ b/dlls/msi/action.c
@@ -2086,6 +2086,17 @@ UINT MSI_SetFeatureStates(MSIPACKAGE *package)
      * now we want to enable or disable components base on feature
      */
 
+    LIST_FOR_EACH_ENTRY( component, &package->components, MSICOMPONENT, entry )
+    {
+        if (component->Enabled)
+        {
+            component->anyAbsent = 0;
+            component->hasAdvertiseFeature = 0;
+            component->hasLocalFeature = 0;
+            component->hasSourceFeature = 0;
+        }
+    }
+
     LIST_FOR_EACH_ENTRY( feature, &package->features, MSIFEATURE, entry )
     {
         ComponentList *cl;
-- 
1.6.3.3



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