From 9ae062f63e58a175641bd10b69603aa0edc47ec2 Mon Sep 17 00:00:00 2001 From: Hans Leidekker Date: Thu, 11 Nov 2010 10:44:37 +0100 Subject: [PATCH] msi: MsiGet/SetFeatureState must get and set the requested feature action, not the action taken. --- dlls/msi/install.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dlls/msi/install.c b/dlls/msi/install.c index 730e27e537e..9463a5226fd 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; }