Module: wine Branch: refs/heads/master Commit: 17518ca910aeddff41126fa14feb840f3ffabbb3 URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=17518ca910aeddff41126fa1...
Author: Mike McCormack mike@codeweavers.com Date: Wed Jul 5 18:34:13 2006 +0900
msi: Forward MsiUseFeature to MsiUseFeatureEx.
---
dlls/msi/msi.c | 31 ++++++++----------------------- 1 files changed, 8 insertions(+), 23 deletions(-)
diff --git a/dlls/msi/msi.c b/dlls/msi/msi.c index 05d9380..119a4f9 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); }
/***********************************************************************