commsfwutils/commsbufs/mbufmgr/src/mb_chn.cpp
branchRCL_3
changeset 48 07656293a99c
parent 29 9644881fedd0
child 66 cbb19216b74d
equal deleted inserted replaced
37:35c06c1d4fa6 48:07656293a99c
   279 //	TInt err = newChain.Alloc(len + aHdrReserve, *this);
   279 //	TInt err = newChain.Alloc(len + aHdrReserve, *this);
   280 	TInt err;
   280 	TInt err;
   281     if(First())
   281     if(First())
   282         {
   282         {
   283         newChain.iNext = First()->Pool()->Pond().Alloc(len + aHdrReserve, 0, KMaxTInt);
   283         newChain.iNext = First()->Pool()->Pond().Alloc(len + aHdrReserve, 0, KMaxTInt);
   284         err = iNext ? KErrNone : KErrNoMBufs;      
   284         err = newChain.iNext ? KErrNone : KErrNoMBufs;      
   285         }
   285         }
   286     else
   286     else
   287         {
   287         {
   288         RMBufAllocator allocator;
   288         RMBufAllocator allocator;
   289         err = newChain.Alloc(aLen + aHdrReserve, allocator);  
   289         err = newChain.Alloc(aLen + aHdrReserve, allocator);