bluetoothengine/btaudioman/src/BTAccSession.cpp
changeset 24 8930e1d1d530
parent 22 4255033c5d30
--- a/bluetoothengine/btaudioman/src/BTAccSession.cpp	Fri Apr 23 23:38:44 2010 +0300
+++ b/bluetoothengine/btaudioman/src/BTAccSession.cpp	Fri Apr 23 23:54:40 2010 +0300
@@ -253,6 +253,11 @@
         //finished with the accessory info array
         infos.Close();
         
+        if(buf.Length() <= 0)
+            {
+            ret = KErrNotFound;
+            }
+        
         //if there is no error and the buffer has something in,
         //write the buffer to the message
         if (ret == KErrNone)