bluetoothengine/btmac/src/BTMonoCmdHandler/btmccallinghandler.cpp
branchRCL_3
changeset 54 0ba996a9b75d
parent 21 53b7818cd282
child 72 4b59561a31c0
equal deleted inserted replaced
53:eede1356aa52 54:0ba996a9b75d
    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                 {