msi: respect msidbFeatureAttributesDisallowAdvertise
Aric Stewart
aric at codeweavers.com
Thu Jun 2 08:18:45 CDT 2005
Do not change a features state to Advertise if it explicitly disallows it.
-------------- next part --------------
Index: dlls//msi/action.c
===================================================================
RCS file: /home/wine/wine/dlls/msi/action.c,v
retrieving revision 1.127
diff -u -r1.127 action.c
--- dlls//msi/action.c 2 Jun 2005 10:29:57 -0000 1.127
+++ dlls//msi/action.c 2 Jun 2005 12:57:10 -0000
@@ -7717,6 +7804,11 @@
index = get_loaded_feature(package,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;
More information about the wine-patches
mailing list