Module: wine Branch: master Commit: b53957df2a73ae51ca6ebc1e88bb9c4ed8b8d274 URL: http://source.winehq.org/git/wine.git/?a=commit;h=b53957df2a73ae51ca6ebc1e88... Author: Mark Jansen <learn0more+wine(a)gmail.com> Date: Tue Mar 7 15:48:59 2017 +0100 msi: Use the correct type when calculating feature cost. Signed-off-by: Sebastian Lackner <sebastian(a)fds-team.de> Signed-off-by: Hans Leidekker <hans(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/msi/install.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dlls/msi/install.c b/dlls/msi/install.c index a0f69c9..0ccc8e3 100644 --- a/dlls/msi/install.c +++ b/dlls/msi/install.c @@ -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; }