Lines Matching refs:NewMlu
264 cmsMLU* NewMlu = NULL; in cmsMLUdup() local
269 NewMlu = cmsMLUalloc(mlu ->ContextID, mlu ->UsedEntries); in cmsMLUdup()
270 if (NewMlu == NULL) return NULL; in cmsMLUdup()
273 if (NewMlu ->AllocatedEntries < mlu ->UsedEntries) in cmsMLUdup()
277 if (NewMlu ->Entries == NULL || mlu ->Entries == NULL) goto Error; in cmsMLUdup()
279 memmove(NewMlu ->Entries, mlu ->Entries, mlu ->UsedEntries * sizeof(_cmsMLUentry)); in cmsMLUdup()
280 NewMlu ->UsedEntries = mlu ->UsedEntries; in cmsMLUdup()
284 NewMlu ->MemPool = NULL; in cmsMLUdup()
288 NewMlu ->MemPool = _cmsMalloc(mlu ->ContextID, mlu ->PoolUsed); in cmsMLUdup()
289 if (NewMlu ->MemPool == NULL) goto Error; in cmsMLUdup()
292 NewMlu ->PoolSize = mlu ->PoolUsed; in cmsMLUdup()
294 if (NewMlu ->MemPool == NULL || mlu ->MemPool == NULL) goto Error; in cmsMLUdup()
296 memmove(NewMlu ->MemPool, mlu->MemPool, mlu ->PoolUsed); in cmsMLUdup()
297 NewMlu ->PoolUsed = mlu ->PoolUsed; in cmsMLUdup()
299 return NewMlu; in cmsMLUdup()
303 if (NewMlu != NULL) cmsMLUfree(NewMlu); in cmsMLUdup()