bluetoothengine/btaudioman/src/BTAccSession.cpp
changeset 24 8930e1d1d530
parent 22 4255033c5d30
equal deleted inserted replaced
23:988cddd6adbd 24:8930e1d1d530
   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);