mtpfws/mtpfw/dataproviders/dputility/src/cmtpmoveobject.cpp
branchRCL_3
changeset 4 60a94a45d437
parent 3 8b094906a049
child 6 ef55b168cedb
--- 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);
 		}