fusion: Implement CreateAssemblyCache.

This commit is contained in:
James Hawkins 2008-03-25 00:04:57 -05:00 committed by Alexandre Julliard
parent 082b46887a
commit 823640fc2f
2 changed files with 26 additions and 9 deletions

View File

@ -147,6 +147,32 @@ static const IAssemblyCacheVtbl AssemblyCacheVtbl = {
IAssemblyCacheImpl_InstallAssembly
};
/******************************************************************
* CreateAssemblyCache (FUSION.@)
*/
HRESULT WINAPI CreateAssemblyCache(IAssemblyCache **ppAsmCache, DWORD dwReserved)
{
IAssemblyCacheImpl *cache;
TRACE("(%p, %d)\n", ppAsmCache, dwReserved);
if (!ppAsmCache)
return E_INVALIDARG;
*ppAsmCache = NULL;
cache = HeapAlloc(GetProcessHeap(), 0, sizeof(IAssemblyCacheImpl));
if (!cache)
return E_OUTOFMEMORY;
cache->lpIAssemblyCacheVtbl = &AssemblyCacheVtbl;
cache->ref = 1;
*ppAsmCache = (IAssemblyCache *)cache;
return S_OK;
}
/* IAssemblyCacheItem */
typedef struct {

View File

@ -53,15 +53,6 @@ HRESULT WINAPI CompareAssemblyIdentity(LPCWSTR pwzAssemblyIdentity1, BOOL fUnifi
return E_NOTIMPL;
}
/******************************************************************
* CreateAssemblyCache (FUSION.@)
*/
HRESULT WINAPI CreateAssemblyCache(IAssemblyCache **ppAsmCache, DWORD dwReserved)
{
FIXME("(%p, %d) stub!\n", ppAsmCache, dwReserved);
return E_NOTIMPL;
}
/******************************************************************
* CreateAssemblyEnum (FUSION.@)
*/