userlibandfileserver/fileserver/sfile/sf_obj.cpp
changeset 2 4122176ea935
parent 0 a41df078684a
child 19 4a8fed1c0ef6
--- a/userlibandfileserver/fileserver/sfile/sf_obj.cpp	Mon Oct 19 15:55:17 2009 +0100
+++ b/userlibandfileserver/fileserver/sfile/sf_obj.cpp	Mon Dec 21 16:14:42 2009 +0000
@@ -191,15 +191,16 @@
 either use the protected member function Inc() to increment the reference 
 count or make a base call to this function.
 
-@return KErrNone if successful.
-        KErrGeneral if unable to increment reference count.
+@return KErrNone, or another system-wide error code.
 */
 
 EXPORT_C TInt CFsObject::Open()
 	{
 	TInt count=Inc();
+	(void)count;
 	__THRD_PRINT2(_L("CFsObject::Open() object=0x%x count=%d"),this,count);
-	return(count?KErrNone:KErrGeneral);
+	__ASSERT_DEBUG(count>=1,Fault(EFsObjectOpen));
+	return KErrNone;
 	}