bluetoothengine/btmac/src/BTMonoCmdHandler/btmccallinghandler.cpp
changeset 51 625f43ae9362
parent 31 a0ea99b6fa53
child 72 4b59561a31c0
equal deleted inserted replaced
49:9866e1d49556 51:625f43ae9362
    92         case KCallingResponse:
    92         case KCallingResponse:
    93             {
    93             {
    94             TInt result = KErrNone;
    94             TInt result = KErrNone;
    95             if (!aErr)
    95             if (!aErr)
    96                 {
    96                 {
    97                 TBuf8<KDefaultCmdBufLength> buf;
    97                 RBuf8 buf;
       
    98                 buf.CreateL(KDefaultCmdBufLength);
    98                 aErr = iRespProperty.Get(buf);
    99                 aErr = iRespProperty.Get(buf);
    99                 if (!aErr && buf.Length() >= sizeof(TInt))
   100                 if (!aErr && buf.Length() >= sizeof(TInt))
   100                     {
   101                     {
   101                     const TUint8* ptr = buf.Ptr();
   102                     const TUint8* ptr = buf.Ptr();
   102                     result = *((const TInt*)ptr);
   103                     result = *((const TInt*)ptr);
   103                     }
   104                     }
       
   105                 buf.Close();
   104                 }
   106                 }
   105             TRACE_INFO((_L("resp %d"), result))
   107             TRACE_INFO((_L("resp %d"), result))
   106             TATId atid = EATOK;
   108             TATId atid = EATOK;
   107             if (aErr || result)
   109             if (aErr || result)
   108                 {
   110                 {