diff -r 1b39655331a3 -r 6e82ae192c3a mtpfws/mtpfw/dataproviders/devdp/src/cmtpresetdevicepropvalue.cpp --- a/mtpfws/mtpfw/dataproviders/devdp/src/cmtpresetdevicepropvalue.cpp Fri Apr 16 15:51:48 2010 +0300 +++ b/mtpfws/mtpfw/dataproviders/devdp/src/cmtpresetdevicepropvalue.cpp Mon May 03 13:19:02 2010 +0300 @@ -263,21 +263,20 @@ TMTPTypeGuid* CMTPResetDevicePropValue::GetGUIDL(const TUint aKey) { - - TBuf8 ptr; + TBuf buf; - iRepository->Get(aKey,ptr); - - TMTPTypeGuid* ret = new (ELeave) TMTPTypeGuid( ptr ); + User::LeaveIfError(iRepository->Get(aKey,buf)); + + TMTPTypeGuid* ret = new (ELeave) TMTPTypeGuid( buf ); return ret; } void CMTPResetDevicePropValue::SaveGUID( const TUint aKey, TMTPTypeGuid& aValue ) { - TPtrC8 ptr; - if ( KMTPChunkSequenceCompletion == aValue.FirstReadChunk(ptr) ) - { - iRepository->Set(aKey,ptr); - } + TBuf buf; + if(aValue.ToString(buf) == KErrNone) + { + iRepository->Set(aKey,buf); + } }