Commit 5f442207 authored by James Hawkins's avatar James Hawkins Committed by Alexandre Julliard

msi: Forward MsiQueryComponentStateA to MsiQueryComponentStateW.

parent 072adfa9
......@@ -732,9 +732,40 @@ UINT WINAPI MsiEnableLogW(DWORD dwLogMode, LPCWSTR szLogFile, DWORD attributes)
return ERROR_SUCCESS;
}
UINT WINAPI MsiQueryComponentStateA(LPCSTR szProductCode, LPCSTR szUserSid, MSIINSTALLCONTEXT dwContext, LPCSTR szComponent, INSTALLSTATE *pdwState)
UINT WINAPI MsiQueryComponentStateA(LPCSTR szProductCode,
LPCSTR szUserSid, MSIINSTALLCONTEXT dwContext,
LPCSTR szComponent, INSTALLSTATE *pdwState)
{
FIXME("(%s, %s, %d, %s, %p): stub!\n", debugstr_a(szProductCode), debugstr_a(szUserSid), dwContext, debugstr_a(szComponent), pdwState);
LPWSTR prodcode = NULL, usersid = NULL, comp = NULL;
UINT r;
TRACE("(%s, %s, %d, %s, %p)\n", debugstr_a(szProductCode),
debugstr_a(szUserSid), dwContext, debugstr_a(szComponent), pdwState);
if (szProductCode && !(prodcode = strdupAtoW(szProductCode)))
return ERROR_OUTOFMEMORY;
if (szUserSid && !(usersid = strdupAtoW(szUserSid)))
return ERROR_OUTOFMEMORY;
if (szComponent && !(comp = strdupAtoW(szComponent)))
return ERROR_OUTOFMEMORY;
r = MsiQueryComponentStateW(prodcode, usersid, dwContext, comp, pdwState);
msi_free(prodcode);
msi_free(usersid);
msi_free(comp);
return r;
}
UINT WINAPI MsiQueryComponentStateW(LPCWSTR szProductCode,
LPCWSTR szUserSid, MSIINSTALLCONTEXT dwContext,
LPCWSTR szComponent, INSTALLSTATE *pdwState)
{
FIXME("(%s, %s, %d, %s, %p): stub!\n", debugstr_w(szProductCode),
debugstr_w(szUserSid), dwContext, debugstr_w(szComponent), pdwState);
if (!pdwState)
return ERROR_INVALID_PARAMETER;
......
......@@ -243,7 +243,7 @@
247 stub MsiGetProductInfoExA
248 stub MsiGetProductInfoExW
249 stdcall MsiQueryComponentStateA(str str long str ptr)
250 stub MsiQueryComponentStateW
250 stdcall MsiQueryComponentStateW(wstr wstr long wstr ptr)
251 stub MsiQueryFeatureStateExA
252 stub MsiQueryFeatureStateExW
253 stub MsiDeterminePatchSequenceA
......
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