diff -r 3673b591050c -r ef55b168cedb mtpfws/mtpfw/dataproviders/dputility/src/cmtpcopyobject.cpp --- a/mtpfws/mtpfw/dataproviders/dputility/src/cmtpcopyobject.cpp Wed Apr 14 16:49:36 2010 +0300 +++ b/mtpfws/mtpfw/dataproviders/dputility/src/cmtpcopyobject.cpp Tue Apr 27 17:30:23 2010 +0300 @@ -127,8 +127,13 @@ { __FLOG(_L8("ServiceL - Entry")); TUint32 handle = KMTPHandleNone; - TMTPResponseCode responseCode = CopyObjectL(handle); - if(responseCode != EMTPRespCodeOK) + TMTPResponseCode responseCode = EMTPRespCodeOK; + TRAPD(err, responseCode = CopyObjectL(handle)); + if(err != KErrNone) + { + SendResponseL(EMTPRespCodeAccessDenied); + } + else if(responseCode != EMTPRespCodeOK) { __FLOG_VA((_L8("ServiceL, sending response with respond code %d"), responseCode)); SendResponseL(responseCode);