usbmgmt/usbmgrtest/ObexClassController/test/src/simpleObexClient.cpp
changeset 31 4bea936937d0
parent 0 c9bc50fca66e
child 43 012cc2ee6408
--- a/usbmgmt/usbmgrtest/ObexClassController/test/src/simpleObexClient.cpp	Wed Jun 23 20:17:18 2010 +0300
+++ b/usbmgmt/usbmgrtest/ObexClassController/test/src/simpleObexClient.cpp	Tue Jul 06 16:23:38 2010 +0300
@@ -119,16 +119,16 @@
 	
 	// Create file session and create a new private path on drive C
 	RFs fileSession;
-	fileSession.Connect();
+	User::LeaveIfError(fileSession.Connect());
 	
-	fileSession.CreatePrivatePath(EDriveC);
-	fileSession.SetSessionToPrivate(EDriveC);	
-	fileSession.SessionPath(iSessionPath);
+	User::LeaveIfError(fileSession.CreatePrivatePath(EDriveC));
+	User::LeaveIfError(fileSession.SetSessionToPrivate(EDriveC));	
+	User::LeaveIfError(fileSession.SessionPath(iSessionPath));
 	
 	// Copy the files from oby file ro the newly created path
-	BaflUtils::CopyFile(fileSession, KFilePath1, KFilename1,0);
-	BaflUtils::CopyFile(fileSession, KFilePath2, KFilename2,0);
-	BaflUtils::CopyFile(fileSession, KFilePath3, KFilename3,0);
+	User::LeaveIfError(BaflUtils::CopyFile(fileSession, KFilePath1, KFilename1,0));
+	User::LeaveIfError(BaflUtils::CopyFile(fileSession, KFilePath2, KFilename2,0));
+	User::LeaveIfError(BaflUtils::CopyFile(fileSession, KFilePath3, KFilename3,0));
  
 	fileSession.Close();