--- a/userlibandfileserver/fileserver/sfile/sf_obj.cpp Tue Aug 31 16:34:26 2010 +0300
+++ b/userlibandfileserver/fileserver/sfile/sf_obj.cpp Wed Sep 01 12:34:56 2010 +0100
@@ -131,10 +131,7 @@
if (newAlloc)
{
iContainers=(CFsObjectCon**)User::ReAlloc(iContainers,newAlloc*sizeof(CFsObjectCon*));
- if(!iContainers)
- {
- Fault(EContainerHeapCorruptionOnRemove);
- }
+ __ASSERT_DEBUG(iContainers,User::Panic(_L("FS_LDR panic"),ELdrHeapCorruptionOnRemove));
}
else
{
@@ -497,10 +494,7 @@
if (newAlloc)
{
iObjects=(SFsObjectIxRec*)User::ReAlloc(iObjects,newAlloc*sizeof(SFsObjectIxRec));
- if(!iObjects)
- {
- Fault(EContainerHeapCorruptionOnRemove);
- }
+ __ASSERT_DEBUG(iObjects,User::Panic(_L("FS_LDR panic"),ELdrHeapCorruptionOnRemove));
}
else
{
@@ -693,10 +687,7 @@
if (newAlloc)
{
iObjects=(CFsObject**)User::ReAlloc(iObjects,newAlloc*sizeof(CFsObject*));
- if(!iObjects)
- {
- Fault(EContainerHeapCorruptionOnRemove);
- }
+ __ASSERT_DEBUG(iObjects,User::Panic(_L("FS_LDR panic"),ELdrHeapCorruptionOnRemove));
}
else
{