From 17518ca910aeddff41126fa14feb840f3ffabbb3 Mon Sep 17 00:00:00 2001 From: Mike McCormack Date: Wed, 5 Jul 2006 18:34:13 +0900 Subject: [PATCH] msi: Forward MsiUseFeature to MsiUseFeatureEx. --- dlls/msi/msi.c | 31 ++++++++----------------------- 1 file changed, 8 insertions(+), 23 deletions(-) diff --git a/dlls/msi/msi.c b/dlls/msi/msi.c index 05d93807325..119a4f9655b 100644 --- a/dlls/msi/msi.c +++ b/dlls/msi/msi.c @@ -1497,35 +1497,20 @@ end: return ret; } +/*********************************************************************** + * MsiUseFeatureW [MSI.@] + */ INSTALLSTATE WINAPI MsiUseFeatureW( LPCWSTR szProduct, LPCWSTR szFeature ) { - FIXME("%s %s\n", debugstr_w(szProduct), debugstr_w(szFeature)); - - return INSTALLSTATE_LOCAL; + return MsiUseFeatureExW(szProduct, szFeature, 0, 0); } +/*********************************************************************** + * MsiUseFeatureA [MSI.@] + */ INSTALLSTATE WINAPI MsiUseFeatureA( LPCSTR szProduct, LPCSTR szFeature ) { - INSTALLSTATE ret = INSTALLSTATE_UNKNOWN; - LPWSTR prod = NULL, feat = NULL; - - TRACE("%s %s\n", debugstr_a(szProduct), debugstr_a(szFeature) ); - - prod = strdupAtoW( szProduct ); - if (szProduct && !prod) - goto end; - - feat = strdupAtoW( szFeature ); - if (szFeature && !feat) - goto end; - - ret = MsiUseFeatureW( prod, feat ); - -end: - msi_free( prod ); - msi_free( feat ); - - return ret; + return MsiUseFeatureExA(szProduct, szFeature, 0, 0); } /***********************************************************************