Commit 54ba7b93 authored by Aric Stewart's avatar Aric Stewart Committed by Alexandre Julliard

Do not change a features state to Advertise if it explicitly disallows

it.
parent ca8c4e41
......@@ -7789,6 +7789,11 @@ UINT WINAPI MSI_SetFeatureStateW(MSIPACKAGE* package, LPCWSTR szFeature,
if (index < 0)
return ERROR_UNKNOWN_FEATURE;
if (iState == INSTALLSTATE_ADVERTISED &&
package->features[index].Attributes &
msidbFeatureAttributesDisallowAdvertise)
return ERROR_FUNCTION_FAILED;
package->features[index].ActionRequest= iState;
package->features[index].Action= iState;
......
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