Hans Leidekker : msi: Forward MsiInstallMissingComponentA to MsiInstallMissingComponentW.
Alexandre Julliard
julliard at winehq.org
Tue Nov 16 12:45:44 CST 2010
Module: wine
Branch: master
Commit: c3030532d4d193554f3e6f430025605a9e717ad1
URL: http://source.winehq.org/git/wine.git/?a=commit;h=c3030532d4d193554f3e6f430025605a9e717ad1
Author: Hans Leidekker <hans at codeweavers.com>
Date: Tue Nov 16 09:07:36 2010 +0100
msi: Forward MsiInstallMissingComponentA to MsiInstallMissingComponentW.
---
dlls/msi/msi.c | 25 +++++++++++++++++++++++++
dlls/msi/msi.spec | 2 +-
2 files changed, 26 insertions(+), 1 deletions(-)
diff --git a/dlls/msi/msi.c b/dlls/msi/msi.c
index 9e2225c..dcd8e8e 100644
--- a/dlls/msi/msi.c
+++ b/dlls/msi/msi.c
@@ -3770,6 +3770,31 @@ UINT WINAPI MsiSetExternalUIRecord( INSTALLUI_HANDLER_RECORD handler,
}
/***********************************************************************
+ * MsiInstallMissingComponentA [MSI.@]
+ */
+UINT WINAPI MsiInstallMissingComponentA( LPCSTR product, LPCSTR component, INSTALLSTATE state )
+{
+ UINT r;
+ WCHAR *productW = NULL, *componentW = NULL;
+
+ TRACE("%s, %s, %d\n", debugstr_a(product), debugstr_a(component), state);
+
+ if (product && !(productW = strdupAtoW( product )))
+ return ERROR_OUTOFMEMORY;
+
+ if (component && !(componentW = strdupAtoW( component )))
+ {
+ msi_free( productW );
+ return ERROR_OUTOFMEMORY;
+ }
+
+ r = MsiInstallMissingComponentW( productW, componentW, state );
+ msi_free( productW );
+ msi_free( componentW );
+ return r;
+}
+
+/***********************************************************************
* MsiInstallMissingComponentW [MSI.@]
*/
UINT WINAPI MsiInstallMissingComponentW(LPCWSTR szProduct, LPCWSTR szComponent, INSTALLSTATE eInstallState)
diff --git a/dlls/msi/msi.spec b/dlls/msi/msi.spec
index fd047f8..c1e3553 100644
--- a/dlls/msi/msi.spec
+++ b/dlls/msi/msi.spec
@@ -76,7 +76,7 @@
80 stdcall MsiGetTargetPathW(long wstr ptr ptr)
81 stdcall MsiGetUserInfoA(str ptr ptr ptr ptr ptr ptr)
82 stdcall MsiGetUserInfoW(wstr ptr ptr ptr ptr ptr ptr)
-83 stub MsiInstallMissingComponentA
+83 stdcall MsiInstallMissingComponentA(str str long)
84 stdcall MsiInstallMissingComponentW(wstr wstr long)
85 stub MsiInstallMissingFileA
86 stub MsiInstallMissingFileW
More information about the wine-cvs
mailing list