diff -r d2c4c66342f3 -r d51193d814ea messagingfw/msgsrvnstore/server/src/CMsvPlainBodyText.cpp --- a/messagingfw/msgsrvnstore/server/src/CMsvPlainBodyText.cpp Tue Aug 31 15:41:11 2010 +0300 +++ b/messagingfw/msgsrvnstore/server/src/CMsvPlainBodyText.cpp Wed Sep 01 12:27:27 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). // All rights reserved. // This component and the accompanying materials are made available // under the terms of "Eclipse Public License v1.0" @@ -608,7 +608,7 @@ } // Push start position of current chunk in to the stack. - iStartPosOfEachChunkInFile.AppendL(iStartPosOfNextChunk); + iStartPosOfEachChunkInFile.Append(iStartPosOfNextChunk); iStartPosOfNextChunk += numOfBytesInCurrentChunk; iReadChunkLength = numOfBytesInCurrentChunk; } @@ -919,7 +919,7 @@ else { // Push Start position of current chunk in to the stack. - iStartPosOfEachChunkInFile.AppendL(iStartPosOfNextChunk); + iStartPosOfEachChunkInFile.Append(iStartPosOfNextChunk); iStartPosOfNextChunk += numOfBytesInCurrentChunk; } iReadChunkLength = numOfBytesInCurrentChunk; @@ -1120,7 +1120,7 @@ void CMsvPlainBodyText::RevertL() { iFile.Close(); - if(!iIsCommitted) + if(!iIsCommitted && iMsvFileStatus == EMsvFileWriting) { iMsvStoreManager.DeletePlainTextFileL(iMessageId); }