userlibandfileserver/fileserver/sfile/sf_cache.cpp
branchRCL_3
changeset 256 c1f20ce4abcf
parent 89 1df514389a47
child 257 3e88ff8f41d5
equal deleted inserted replaced
249:a179b74831c9 256:c1f20ce4abcf
   610 	if(r==KErrNoMemory)
   610 	if(r==KErrNoMemory)
   611 		return r;
   611 		return r;
   612 
   612 
   613 	iCache = (TFileCacheRecord**)User::ReAlloc(pIndexes,sizeof(TFileCacheRecord*)*currentIndex);
   613 	iCache = (TFileCacheRecord**)User::ReAlloc(pIndexes,sizeof(TFileCacheRecord*)*currentIndex);
   614 	if(!iCache)
   614 	if(!iCache)
   615 		return KErrNoMemory;
   615 	    return KErrNoMemory;
   616 		
   616 	
   617 	iNotPresent = EFalse;
   617 	iNotPresent = EFalse;
   618 	iRecordCount = currentIndex;
   618 	iRecordCount = currentIndex;
   619 	if (currentIndex>1)
   619 	if (currentIndex>1)
   620 		{
   620 		{
   621 		// don't sort an empty list, or a list with only 1 element
   621 		// don't sort an empty list, or a list with only 1 element