Module: wine Branch: refs/heads/master Commit: f6170beb479532fefe9da42316cf9c8bc0543d2b URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=f6170beb479532fefe9da423...
Author: Mike McCormack mike@codeweavers.com Date: Mon Jul 17 17:44:29 2006 +0900
msi: Implement MsiConfigureFeatureA using MsiConfigureFeatureW.
---
dlls/msi/msi.c | 22 ++++++++++++++++++++-- 1 files changed, 20 insertions(+), 2 deletions(-)
diff --git a/dlls/msi/msi.c b/dlls/msi/msi.c index a3f7a32..d7741f5 100644 --- a/dlls/msi/msi.c +++ b/dlls/msi/msi.c @@ -1779,8 +1779,26 @@ UINT WINAPI MsiCollectUserInfoA(LPCSTR s */ UINT WINAPI MsiConfigureFeatureA(LPCSTR szProduct, LPCSTR szFeature, INSTALLSTATE eInstallState) { - FIXME("%s %s %i\n", debugstr_a(szProduct), debugstr_a(szFeature), eInstallState); - return ERROR_SUCCESS; + LPWSTR prod, feat = NULL; + UINT r = ERROR_OUTOFMEMORY; + + TRACE("%s %s %i\n", debugstr_a(szProduct), debugstr_a(szFeature), eInstallState); + + prod = strdupAtoW( szProduct ); + if (szProduct && !prod) + goto end; + + feat = strdupAtoW( szFeature ); + if (szFeature && !feat) + goto end; + + r = MsiConfigureFeatureW(prod, feat, eInstallState); + +end: + msi_free(feat); + msi_free(prod); + + return r; }
/***********************************************************************