--- a/mtpfws/mtpfw/dataproviders/dputility/src/cmtpmoveobject.cpp Mon Mar 15 12:43:12 2010 +0200
+++ b/mtpfws/mtpfw/dataproviders/dputility/src/cmtpmoveobject.cpp Wed Mar 31 22:58:56 2010 +0300
@@ -113,8 +113,13 @@
*/
void CMTPMoveObject::ServiceL()
{
- TMTPResponseCode ret = MoveObjectL();
- if (EMTPRespCodeOK != ret)
+ TMTPResponseCode ret = EMTPRespCodeOK;
+ TRAPD(err, ret = MoveObjectL());
+ if (err != KErrNone)
+ {
+ SendResponseL(EMTPRespCodeAccessDenied);
+ }
+ else if (EMTPRespCodeOK != ret)
{
SendResponseL(ret);
}