[Wine-patches] [eterhack 3/6] msi: Do not call ACTION_UpdateComponentStates with "ALL" as a second argument (eterbug #953).

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


---
 dlls/msi/events.c |   14 +++++++++-----
 1 files changed, 9 insertions(+), 5 deletions(-)

diff --git a/dlls/msi/events.c b/dlls/msi/events.c
index a89d689..7013e8c 100644
--- a/dlls/msi/events.c
+++ b/dlls/msi/events.c
@@ -180,9 +180,10 @@ static UINT ControlEvent_AddLocal(MSIPACKAGE* package, LPCWSTR argument,
     else
     {
         LIST_FOR_EACH_ENTRY( feature, &package->features, MSIFEATURE, entry )
+        {
             msi_feature_set_state(package, feature, INSTALLSTATE_LOCAL);
-
-        ACTION_UpdateComponentStates(package,argument);
+            ACTION_UpdateComponentStates(package, feature->Feature);
+        }
     }
     return ERROR_SUCCESS;
 }
@@ -200,9 +201,10 @@ static UINT ControlEvent_Remove(MSIPACKAGE* package, LPCWSTR argument,
     else
     {
         LIST_FOR_EACH_ENTRY( feature, &package->features, MSIFEATURE, entry )
+        {
             msi_feature_set_state(package, feature, INSTALLSTATE_ABSENT);
-
-        ACTION_UpdateComponentStates(package,argument);
+            ACTION_UpdateComponentStates(package, feature->Feature);
+        }
     }
     return ERROR_SUCCESS;
 }
@@ -220,8 +222,10 @@ static UINT ControlEvent_AddSource(MSIPACKAGE* package, LPCWSTR argument,
     else
     {
         LIST_FOR_EACH_ENTRY( feature, &package->features, MSIFEATURE, entry )
+        {
             msi_feature_set_state(package, feature, INSTALLSTATE_SOURCE);
-        ACTION_UpdateComponentStates(package,argument);
+            ACTION_UpdateComponentStates(package, feature->Feature);
+        }
     }
     return ERROR_SUCCESS;
 }
-- 
1.6.3.3



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