diff -r d3e8e7d462dd -r f92a4f87e424 usbmgmt/usbmgrtest/ObexClassController/test/src/simpleObexClient.cpp --- a/usbmgmt/usbmgrtest/ObexClassController/test/src/simpleObexClient.cpp Thu Jul 15 20:42:20 2010 +0300 +++ b/usbmgmt/usbmgrtest/ObexClassController/test/src/simpleObexClient.cpp Tue Aug 31 17:01:47 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();