userlibandfileserver/fileserver/sfile/sf_cache.cpp
branchRCL_3
changeset 89 1df514389a47
parent 0 a41df078684a
child 256 c1f20ce4abcf
--- a/userlibandfileserver/fileserver/sfile/sf_cache.cpp	Wed Mar 31 23:38:45 2010 +0300
+++ b/userlibandfileserver/fileserver/sfile/sf_cache.cpp	Wed Apr 14 17:22:59 2010 +0300
@@ -610,8 +610,11 @@
 	if(r==KErrNoMemory)
 		return r;
 
+	iCache = (TFileCacheRecord**)User::ReAlloc(pIndexes,sizeof(TFileCacheRecord*)*currentIndex);
+	if(!iCache)
+		return KErrNoMemory;
+		
 	iNotPresent = EFalse;
-	iCache = (TFileCacheRecord**)User::ReAlloc(pIndexes,sizeof(TFileCacheRecord*)*currentIndex);
 	iRecordCount = currentIndex;
 	if (currentIndex>1)
 		{