Commit 9ae062f6 authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

msi: MsiGet/SetFeatureState must get and set the requested feature action, not the action taken.

parent d2ee7aa7
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment