lowlevellibsandfws/genericusabilitylib/example/src/euserhl_walkthrough.cpp
changeset 44 97b0fb8a2cc2
parent 0 e4d67989cc36
child 57 2efc27d87e1c
--- a/lowlevellibsandfws/genericusabilitylib/example/src/euserhl_walkthrough.cpp	Mon May 03 14:06:43 2010 +0300
+++ b/lowlevellibsandfws/genericusabilitylib/example/src/euserhl_walkthrough.cpp	Tue Jul 20 16:35:53 2010 +0530
@@ -1217,8 +1217,13 @@
 		}
 		
 		{
+		TInt r =KErrNone;	
 		LCleanedupHandle<RFs> managedFs;
-		managedFs->Connect();
+		r = managedFs->Connect();
+		if (r != KErrNone)
+		 {
+			User::Leave(r);
+		 }
 		//default cleanup strategy is to call RFs::Close() on scope exit
 		}