[1/5] msi: MsiGet/SetFeatureState must get and set the requested feature action, not the action taken.
Hans Leidekker
hans at codeweavers.com
Thu Nov 11 03:44:37 CST 2010
---
dlls/msi/install.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/msi/install.c b/dlls/msi/install.c
index 730e27e..9463a52 100644
--- a/dlls/msi/install.c
+++ b/dlls/msi/install.c
@@ -821,7 +821,7 @@ UINT WINAPI MSI_SetFeatureStateW(MSIPACKAGE* package, LPCWSTR szFeature,
feature->Attributes & msidbFeatureAttributesDisallowAdvertise)
return ERROR_FUNCTION_FAILED;
- msi_feature_set_state(package, feature, iState);
+ feature->ActionRequest = iState;
ACTION_UpdateComponentStates(package,szFeature);
@@ -917,9 +917,9 @@ UINT MSI_GetFeatureStateW(MSIPACKAGE *package, LPCWSTR szFeature,
*piInstalled = feature->Installed;
if (piAction)
- *piAction = feature->Action;
+ *piAction = feature->ActionRequest;
- TRACE("returning %i %i\n", feature->Installed, feature->Action);
+ TRACE("returning %i %i\n", feature->Installed, feature->ActionRequest);
return ERROR_SUCCESS;
}
--
1.7.1
More information about the wine-patches
mailing list