userlibandfileserver/fileserver/sfile/sf_obj.cpp
branchanywhere
changeset 20 d63d727ee0a6
parent 15 4122176ea935
child 62 4a8fed1c0ef6
--- a/userlibandfileserver/fileserver/sfile/sf_obj.cpp	Tue Dec 08 08:11:42 2009 +0100
+++ b/userlibandfileserver/fileserver/sfile/sf_obj.cpp	Mon Jan 04 12:25:19 2010 +0100
@@ -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;
 	}