Hans Leidekker : msi: Fix updating the component reference count during rollback.

Alexandre Julliard julliard at winehq.org
Wed May 25 11:28:17 CDT 2011


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

Author: Hans Leidekker <hans at codeweavers.com>
Date:   Wed May 25 10:39:58 2011 +0200

msi: Fix updating the component reference count during rollback.

---

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

diff --git a/dlls/msi/action.c b/dlls/msi/action.c
index 4ef67a3..50e1e31 100644
--- a/dlls/msi/action.c
+++ b/dlls/msi/action.c
@@ -3141,7 +3141,7 @@ static void ACTION_RefCountComponent( MSIPACKAGE* package, MSICOMPONENT *comp )
     {
         ComponentList *cl;
 
-        if (feature->ActionRequest != INSTALLSTATE_LOCAL)
+        if (msi_get_feature_action( package, feature ) != INSTALLSTATE_LOCAL)
             continue;
 
         LIST_FOR_EACH_ENTRY( cl, &feature->Components, ComponentList, entry )
@@ -3156,7 +3156,7 @@ static void ACTION_RefCountComponent( MSIPACKAGE* package, MSICOMPONENT *comp )
     {
         ComponentList *cl;
 
-        if (feature->ActionRequest != INSTALLSTATE_ABSENT)
+        if (msi_get_feature_action( package, feature ) != INSTALLSTATE_ABSENT)
             continue;
 
         LIST_FOR_EACH_ENTRY( cl, &feature->Components, ComponentList, entry )
@@ -3230,14 +3230,14 @@ static UINT ACTION_ProcessComponents(MSIPACKAGE *package)
 
         ACTION_RefCountComponent( package, comp );
 
-        TRACE("Component %s (%s), Keypath=%s, RefCount=%i Request=%u\n",
+        comp->Action = msi_get_component_action( package, comp );
+        TRACE("Component %s (%s), Keypath=%s, RefCount=%u Action=%u\n",
                             debugstr_w(comp->Component),
                             debugstr_w(squished_cc),
                             debugstr_w(comp->FullKeypath),
                             comp->RefCount,
-                            comp->ActionRequest);
+                            comp->Action);
 
-        comp->Action = msi_get_component_action( package, comp );
         if (comp->Action == INSTALLSTATE_LOCAL ||
             comp->Action == INSTALLSTATE_SOURCE)
         {




More information about the wine-cvs mailing list