commsfwutils/commsbufs/mbufmgr/src/mb_chn.cpp
changeset 65 41cc8e7ff496
parent 40 34fc115b8742
child 66 cbb19216b74d
equal deleted inserted replaced
40:34fc115b8742 65:41cc8e7ff496
   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);