bluetoothengine/btaudioman/src/BTAccSession.cpp
branchRCL_3
changeset 11 a42ed326b458
parent 6 6a29d5ad0713
equal deleted inserted replaced
10:0707dd69d236 11:a42ed326b458
   251             }
   251             }
   252         
   252         
   253         //finished with the accessory info array
   253         //finished with the accessory info array
   254         infos.Close();
   254         infos.Close();
   255         
   255         
       
   256         if(buf.Length() <= 0)
       
   257             {
       
   258             ret = KErrNotFound;
       
   259             }
       
   260         
   256         //if there is no error and the buffer has something in,
   261         //if there is no error and the buffer has something in,
   257         //write the buffer to the message
   262         //write the buffer to the message
   258         if (ret == KErrNone)
   263         if (ret == KErrNone)
   259             {
   264             {
   260             ret = aMessage.Write(0, buf);
   265             ret = aMessage.Write(0, buf);