msi: Make MsiGetMode() RPC-compatible.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com> Signed-off-by: Hans Leidekker <hans@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
fffed17f80
commit
9091c3dcf2
|
@ -561,18 +561,11 @@ BOOL WINAPI MsiGetMode(MSIHANDLE hInstall, MSIRUNMODE iRunMode)
|
||||||
if (!package)
|
if (!package)
|
||||||
{
|
{
|
||||||
MSIHANDLE remote;
|
MSIHANDLE remote;
|
||||||
BOOL ret;
|
|
||||||
HRESULT hr;
|
|
||||||
|
|
||||||
if (!(remote = msi_get_remote(hInstall)))
|
if (!(remote = msi_get_remote(hInstall)))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
hr = remote_GetMode(remote, iRunMode, &ret);
|
return remote_GetMode(remote, iRunMode);
|
||||||
|
|
||||||
if (hr == S_OK)
|
|
||||||
return ret;
|
|
||||||
|
|
||||||
return FALSE;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (iRunMode)
|
switch (iRunMode)
|
||||||
|
|
|
@ -2513,10 +2513,9 @@ UINT __cdecl remote_GetSourcePath(MSIHANDLE hinst, LPCWSTR folder, LPWSTR *value
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
|
|
||||||
HRESULT __cdecl remote_GetMode(MSIHANDLE hinst, MSIRUNMODE mode, BOOL *ret)
|
BOOL __cdecl remote_GetMode(MSIHANDLE hinst, MSIRUNMODE mode)
|
||||||
{
|
{
|
||||||
*ret = MsiGetMode(hinst, mode);
|
return MsiGetMode(hinst, mode);
|
||||||
return S_OK;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
HRESULT __cdecl remote_SetMode(MSIHANDLE hinst, MSIRUNMODE mode, BOOL state)
|
HRESULT __cdecl remote_SetMode(MSIHANDLE hinst, MSIRUNMODE mode, BOOL state)
|
||||||
|
|
|
@ -79,7 +79,7 @@ interface IWineMsiRemote
|
||||||
UINT remote_GetTargetPath( [in] MSIHANDLE hinst, [in, string] LPCWSTR folder, [out, string] LPWSTR *value );
|
UINT remote_GetTargetPath( [in] MSIHANDLE hinst, [in, string] LPCWSTR folder, [out, string] LPWSTR *value );
|
||||||
UINT remote_SetTargetPath( [in] MSIHANDLE hinst, [in, string] LPCWSTR folder, [in, string] LPCWSTR value );
|
UINT remote_SetTargetPath( [in] MSIHANDLE hinst, [in, string] LPCWSTR folder, [in, string] LPCWSTR value );
|
||||||
UINT remote_GetSourcePath( [in] MSIHANDLE hinst, [in, string] LPCWSTR folder, [out, string] LPWSTR *value );
|
UINT remote_GetSourcePath( [in] MSIHANDLE hinst, [in, string] LPCWSTR folder, [out, string] LPWSTR *value );
|
||||||
HRESULT remote_GetMode( [in] MSIHANDLE hinst, [in] MSIRUNMODE mode, [out] BOOL *ret );
|
BOOL remote_GetMode( [in] MSIHANDLE hinst, [in] MSIRUNMODE mode );
|
||||||
HRESULT remote_SetMode( [in] MSIHANDLE hinst, [in] MSIRUNMODE mode, [in] BOOL state );
|
HRESULT remote_SetMode( [in] MSIHANDLE hinst, [in] MSIRUNMODE mode, [in] BOOL state );
|
||||||
HRESULT remote_GetFeatureState( [in] MSIHANDLE hinst, [in] BSTR feature, [out] INSTALLSTATE *installed, [out] INSTALLSTATE *action );
|
HRESULT remote_GetFeatureState( [in] MSIHANDLE hinst, [in] BSTR feature, [out] INSTALLSTATE *installed, [out] INSTALLSTATE *action );
|
||||||
HRESULT remote_SetFeatureState( [in] MSIHANDLE hinst, [in] BSTR feature, [in] INSTALLSTATE state );
|
HRESULT remote_SetFeatureState( [in] MSIHANDLE hinst, [in] BSTR feature, [in] INSTALLSTATE state );
|
||||||
|
|
Loading…
Reference in New Issue