Changeset 6649 for trunk/src/quartz/memalloc.c
- Timestamp:
- Sep 5, 2001, 3:39:12 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/quartz/memalloc.c
r6578 r6649 1 /* $Id: memalloc.c,v 1.3 2001-09-05 13:36:37 bird Exp $ */ 1 2 /* 2 3 * Implementation of CLSID_MemoryAllocator. … … 32 33 HRESULT QUARTZ_CreateMemoryAllocator(IUnknown* punkOuter,void** ppobj) 33 34 { 34 CMemoryAllocator*pma;35 CMemoryAllocator* pma; 35 36 36 37 TRACE("(%p,%p)\n",punkOuter,ppobj); 37 38 38 39 40 39 pma = (CMemoryAllocator*)QUARTZ_AllocObj( sizeof(CMemoryAllocator) ); 40 if ( pma == NULL ) 41 return E_OUTOFMEMORY; 41 42 42 43 43 QUARTZ_IUnkInit( &pma->unk, punkOuter ); 44 CMemoryAllocator_InitIMemAllocator( pma ); 44 45 45 46 46 pma->unk.pEntries = IFEntries; 47 pma->unk.dwEntries = sizeof(IFEntries)/sizeof(IFEntries[0]); 47 48 48 49 *ppobj = (void*)(&pma->unk); 49 50 50 51 return S_OK; 51 52 }
Note:
See TracChangeset
for help on using the changeset viewer.