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:
Mark Jansen 2017-03-07 15:48:59 +01:00 committed by Alexandre Julliard
parent d4443bdc29
commit b53957df2a
1 changed files with 3 additions and 3 deletions

View File

@ -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;
}