msi: Assume a transform is applicable if it doesn't specify any products.
Hans Leidekker
hans at codeweavers.com
Fri May 3 07:46:32 CDT 2013
---
dlls/msi/patch.c | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/dlls/msi/patch.c b/dlls/msi/patch.c
index 59785a6..d97ab2e 100644
--- a/dlls/msi/patch.c
+++ b/dlls/msi/patch.c
@@ -44,22 +44,22 @@ static BOOL match_language( MSIPACKAGE *package, LANGID langid )
return FALSE;
}
-static UINT check_transform_applicable( MSIPACKAGE *package, IStorage *patch )
+static UINT check_transform_applicable( MSIPACKAGE *package, IStorage *transform )
{
- LPWSTR prod_code, patch_product, template = NULL;
+ WCHAR *package_product, *transform_product, *template = NULL;
UINT ret = ERROR_FUNCTION_FAILED;
- prod_code = msi_dup_property( package->db, szProductCode );
- patch_product = msi_get_suminfo_product( patch );
+ package_product = msi_dup_property( package->db, szProductCode );
+ transform_product = msi_get_suminfo_product( transform );
- TRACE("db = %s patch = %s\n", debugstr_w(prod_code), debugstr_w(patch_product));
+ TRACE("package = %s transform = %s\n", debugstr_w(package_product), debugstr_w(transform_product));
- if (strstrW( patch_product, prod_code ))
+ if (!transform_product || strstrW( transform_product, package_product ))
{
MSISUMMARYINFO *si;
const WCHAR *p;
- si = MSI_GetSummaryInformationW( patch, 0 );
+ si = MSI_GetSummaryInformationW( transform, 0 );
if (!si)
{
ERR("no summary information!\n");
@@ -90,8 +90,8 @@ static UINT check_transform_applicable( MSIPACKAGE *package, IStorage *patch )
}
end:
- msi_free( patch_product );
- msi_free( prod_code );
+ msi_free( transform_product );
+ msi_free( package_product );
msi_free( template );
return ret;
}
--
1.7.10.4
More information about the wine-patches
mailing list