msi: Use the correct type when calculating feature cost.
Sebastian Lackner
sebastian at fds-team.de
Tue Mar 7 08:48:59 CST 2017
From: Mark Jansen <learn0more+wine at gmail.com>
Signed-off-by: Sebastian Lackner <sebastian at fds-team.de>
---
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 a0f69c97154..0ccc8e3f321 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;
}
--
2.11.0
More information about the wine-patches
mailing list