--- a/userlibandfileserver/fileserver/sfile/sf_cache.cpp Fri Apr 16 16:24:37 2010 +0300
+++ b/userlibandfileserver/fileserver/sfile/sf_cache.cpp Mon May 03 13:47:38 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)
{