Commit b53957df authored by Mark Jansen's avatar Mark Jansen Committed by Alexandre Julliard

msi: Use the correct type when calculating feature cost.

parent d4443bdc
......@@ -1189,11 +1189,11 @@ UINT WINAPI MsiGetFeatureCostA(MSIHANDLE hInstall, LPCSTR szFeature,
static INT feature_cost( MSIFEATURE *feature )
{
INT cost = 0;
MSICOMPONENT *comp;
ComponentList *cl;
LIST_FOR_EACH_ENTRY( comp, &feature->Components, MSICOMPONENT, entry )
LIST_FOR_EACH_ENTRY( cl, &feature->Components, ComponentList, entry )
{
cost += comp->Cost;
cost += cl->component->Cost;
}
return cost;
}
......
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