Commit 4f62bf79 authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

msi: Implement MsiLocateComponent{A,W}.

parent e550eab7
...@@ -835,15 +835,27 @@ LANGID WINAPI MsiLoadStringA( MSIHANDLE handle, UINT id, LPSTR lpBuffer, ...@@ -835,15 +835,27 @@ LANGID WINAPI MsiLoadStringA( MSIHANDLE handle, UINT id, LPSTR lpBuffer,
INSTALLSTATE WINAPI MsiLocateComponentA(LPCSTR szComponent, LPSTR lpPathBuf, INSTALLSTATE WINAPI MsiLocateComponentA(LPCSTR szComponent, LPSTR lpPathBuf,
DWORD *pcchBuf) DWORD *pcchBuf)
{ {
FIXME("%s %p %p\n", debugstr_a(szComponent), lpPathBuf, pcchBuf); char szProduct[GUID_SIZE];
return INSTALLSTATE_UNKNOWN;
TRACE("%s %p %p\n", debugstr_a(szComponent), lpPathBuf, pcchBuf);
if (MsiGetProductCodeA( szComponent, szProduct ) != ERROR_SUCCESS)
return INSTALLSTATE_UNKNOWN;
return MsiGetComponentPathA( szProduct, szComponent, lpPathBuf, pcchBuf );
} }
INSTALLSTATE WINAPI MsiLocateComponentW(LPCWSTR szComponent, LPWSTR lpPathBuf, INSTALLSTATE WINAPI MsiLocateComponentW(LPCWSTR szComponent, LPWSTR lpPathBuf,
DWORD *pcchBuf) DWORD *pcchBuf)
{ {
FIXME("%s %p %p\n", debugstr_w(szComponent), lpPathBuf, pcchBuf); WCHAR szProduct[GUID_SIZE];
return INSTALLSTATE_UNKNOWN;
TRACE("%s %p %p\n", debugstr_w(szComponent), lpPathBuf, pcchBuf);
if (MsiGetProductCodeW( szComponent, szProduct ) != ERROR_SUCCESS)
return INSTALLSTATE_UNKNOWN;
return MsiGetComponentPathW( szProduct, szComponent, lpPathBuf, pcchBuf );
} }
UINT WINAPI MsiMessageBoxA(HWND hWnd, LPCSTR lpText, LPCSTR lpCaption, UINT uType, UINT WINAPI MsiMessageBoxA(HWND hWnd, LPCSTR lpText, LPCSTR lpCaption, UINT uType,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment