bluetoothengine/btmac/src/BTMonoCmdHandler/btmccallinghandler.cpp
branchRCL_3
changeset 72 4b59561a31c0
parent 54 0ba996a9b75d
equal deleted inserted replaced
64:1934667b0e2b 72:4b59561a31c0
    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                 RBuf8 buf;
    97                 TBuf8<KDefaultCmdBufLength> buf;
    98                 buf.CreateL(KDefaultCmdBufLength);
       
    99                 aErr = iRespProperty.Get(buf);
    98                 aErr = iRespProperty.Get(buf);
   100                 if (!aErr && buf.Length() >= sizeof(TInt))
    99                 if (!aErr && buf.Length() >= sizeof(TInt))
   101                     {
   100                     {
   102                     const TUint8* ptr = buf.Ptr();
   101                     const TUint8* ptr = buf.Ptr();
   103                     result = *((const TInt*)ptr);
   102                     result = *((const TInt*)ptr);
   104                     }
   103                     }
   105                 buf.Close();
       
   106                 }
   104                 }
   107             TRACE_INFO((_L("resp %d"), result))
   105             TRACE_INFO((_L("resp %d"), result))
   108             TATId atid = EATOK;
   106             TATId atid = EATOK;
   109             if (aErr || result)
   107             if (aErr || result)
   110                 {
   108                 {