msi: Use the correct type when calculating feature cost.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de> Signed-off-by: Hans Leidekker <hans@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
d4443bdc29
commit
b53957df2a
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue