smsprotocols/smsstack/wapprot/Src/wappstor.cpp
branchRCL_3
changeset 5 7ef16719d8cb
parent 0 3553901f7fa8
child 9 2492a6e4aed7
equal deleted inserted replaced
3:962e6306d9d2 5:7ef16719d8cb
    88             // incomplete WAP datagram
    88             // incomplete WAP datagram
    89             TStreamId StreamdId = Entry.DataStreamId();
    89             TStreamId StreamdId = Entry.DataStreamId();
    90             CWapDatagram* tempDatagram = CWapDatagram::NewL(KNullDesC8);
    90             CWapDatagram* tempDatagram = CWapDatagram::NewL(KNullDesC8);
    91             CleanupStack::PushL(tempDatagram);
    91             CleanupStack::PushL(tempDatagram);
    92 
    92 
    93             // defect fix for EDNJJUN-4WYJGP
       
    94             // Unable to send sms cause sms*.dat is corrupted
       
    95             // TODO - has to be back ported to higher versions
       
    96             TRAPD(ret, InternalizeEntryL(StreamdId,*tempDatagram,*segmentArray));
    93             TRAPD(ret, InternalizeEntryL(StreamdId,*tempDatagram,*segmentArray));
    97             if(ret == KErrCorrupt)
    94             if(ret == KErrCorrupt)
    98                 {
    95                 {
    99                 Close();
    96                 Close();
   100                 User::LeaveIfError(iFs.Delete(iFullPathBuf));
    97                 User::LeaveIfError(iFs.Delete(iFullPathBuf));
   210     CleanupStack::PushL(segmentArray);
   207     CleanupStack::PushL(segmentArray);
   211     CleanupResetAndDestroyPushL(*segmentArray);
   208     CleanupResetAndDestroyPushL(*segmentArray);
   212 
   209 
   213     // defect fix for EDNJJUN-4WYJGP
   210     // defect fix for EDNJJUN-4WYJGP
   214     // Unable to send sms cause sms*.dat is corrupted
   211     // Unable to send sms cause sms*.dat is corrupted
   215     // TODO - has to be back ported to higher versions
       
   216     TRAPD(ret, InternalizeEntryL(Entries()[aIndex].DataStreamId(), aDatagram,*segmentArray));
   212     TRAPD(ret, InternalizeEntryL(Entries()[aIndex].DataStreamId(), aDatagram,*segmentArray));
   217     if(ret == KErrCorrupt)
   213     if(ret == KErrCorrupt)
   218         {
   214         {
   219         Close();             //because the file is in use
   215         Close();             //because the file is in use
   220         User::LeaveIfError(iFs.Delete(iFullPathBuf));
   216         User::LeaveIfError(iFs.Delete(iFullPathBuf));