Home | Info | Community | Development | myReactOS | Contact Us
Definition at line 448 of file asmcache.c.
{ 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->IAssemblyCache_iface.lpVtbl = &AssemblyCacheVtbl; cache->ref = 1; cache->lock = CreateMutexW( NULL, FALSE, cache_mutex_nameW ); if (!cache->lock) { HeapFree( GetProcessHeap(), 0, cache ); return HRESULT_FROM_WIN32( GetLastError() ); } *ppAsmCache = &cache->IAssemblyCache_iface; return S_OK; }