diff -r 0897fb188e2a -r 4bea936937d0 usbmgmt/usbmgrtest/ObexClassController/test/src/simpleObexClient.cpp --- 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();