msi: Handle remote calls to MsiGetActiveDatabase.
This commit is contained in:
parent
bc4750ff75
commit
e4658e05f2
|
@ -538,6 +538,7 @@ UINT msi_strcpy_to_awstring( LPCWSTR str, awstring *awbuf, DWORD *sz );
|
|||
extern ITypeLib *get_msi_typelib( LPWSTR *path );
|
||||
extern HRESULT create_msi_custom_remote( IUnknown *pOuter, LPVOID *ppObj );
|
||||
extern HRESULT create_msi_remote_package( IUnknown *pOuter, LPVOID *ppObj );
|
||||
extern IUnknown *msi_get_remote(MSIHANDLE handle);
|
||||
|
||||
/* handle functions */
|
||||
extern void *msihandle2msiinfo(MSIHANDLE handle, UINT type);
|
||||
|
|
|
@ -944,6 +944,7 @@ MSIHANDLE WINAPI MsiGetActiveDatabase(MSIHANDLE hInstall)
|
|||
{
|
||||
MSIPACKAGE *package;
|
||||
MSIHANDLE handle = 0;
|
||||
IWineMsiRemotePackage *remote_package;
|
||||
|
||||
TRACE("(%ld)\n",hInstall);
|
||||
|
||||
|
@ -953,6 +954,11 @@ MSIHANDLE WINAPI MsiGetActiveDatabase(MSIHANDLE hInstall)
|
|||
handle = alloc_msihandle( &package->db->hdr );
|
||||
msiobj_release( &package->hdr );
|
||||
}
|
||||
else if ((remote_package = (IWineMsiRemotePackage *)msi_get_remote( hInstall )))
|
||||
{
|
||||
IWineMsiRemotePackage_GetActiveDatabase(remote_package, &handle);
|
||||
IWineMsiRemotePackage_Release(remote_package);
|
||||
}
|
||||
|
||||
return handle;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue