mtpfws/mtpfw/dataproviders/dputility/src/cmtpcopyobject.cpp
branchRCL_3
changeset 6 ef55b168cedb
parent 4 60a94a45d437
child 15 f85613f12947
--- 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);