James Hawkins : msi: Add a stub implementation of MsiEnumComponentCostsW.

Alexandre Julliard julliard at winehq.org
Mon Dec 3 09:17:52 CST 2007


Module: wine
Branch: master
Commit: c77d200f27cfc47b9f4f6df7d7231c8f147c43c8
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=c77d200f27cfc47b9f4f6df7d7231c8f147c43c8

Author: James Hawkins <truiken at gmail.com>
Date:   Sun Dec  2 02:05:29 2007 -0600

msi: Add a stub implementation of MsiEnumComponentCostsW.

---

 dlls/msi/msi.c    |   12 ++++++++++++
 dlls/msi/msi.spec |    2 +-
 2 files changed, 13 insertions(+), 1 deletions(-)

diff --git a/dlls/msi/msi.c b/dlls/msi/msi.c
index 72e52af..8e140d3 100644
--- a/dlls/msi/msi.c
+++ b/dlls/msi/msi.c
@@ -732,6 +732,18 @@ UINT WINAPI MsiEnableLogW(DWORD dwLogMode, LPCWSTR szLogFile, DWORD attributes)
     return ERROR_SUCCESS;
 }
 
+UINT WINAPI MsiEnumComponentCostsW(MSIHANDLE hInstall, LPCWSTR szComponent,
+                                   DWORD dwIndex, INSTALLSTATE iState,
+                                   LPWSTR lpDriveBuf, DWORD *pcchDriveBuf,
+                                   int *piCost, int *pTempCost)
+{
+    FIXME("(%ld, %s, %d, %d, %p, %p, %p %p): stub!\n", hInstall,
+          debugstr_w(szComponent), dwIndex, iState, lpDriveBuf,
+          pcchDriveBuf, piCost, pTempCost);
+
+    return ERROR_NO_MORE_ITEMS;
+}
+
 UINT WINAPI MsiQueryComponentStateA(LPCSTR szProductCode,
                                     LPCSTR szUserSid, MSIINSTALLCONTEXT dwContext,
                                     LPCSTR szComponent, INSTALLSTATE *pdwState)
diff --git a/dlls/msi/msi.spec b/dlls/msi/msi.spec
index 25ffb0b..2294eff 100644
--- a/dlls/msi/msi.spec
+++ b/dlls/msi/msi.spec
@@ -214,7 +214,7 @@
 218 stdcall MsiGetFileHashA(str long ptr)
 219 stdcall MsiGetFileHashW(wstr long ptr)
 220 stub MsiEnumComponentCostsA
-221 stub MsiEnumComponentCostsW
+221 stdcall MsiEnumComponentCostsW(long str long long ptr ptr ptr ptr)
 222 stdcall MsiCreateAndVerifyInstallerDirectory(long)
 223 stdcall MsiGetFileSignatureInformationA(str long ptr ptr ptr)
 224 stdcall MsiGetFileSignatureInformationW(wstr long ptr ptr ptr)




More information about the wine-cvs mailing list