userlibandfileserver/fileserver/sfile/sf_plugin_ops.cpp
branchRCL_3
changeset 36 bbf8bed59bcb
parent 0 a41df078684a
child 43 c1f20ce4abcf
equal deleted inserted replaced
28:5b5d147c7838 36:bbf8bed59bcb
   250 TInt TFsPluginName::DoRequestL(CFsRequest* aRequest)
   250 TInt TFsPluginName::DoRequestL(CFsRequest* aRequest)
   251 	{
   251 	{
   252 	CFsPlugin* plugin=NULL;
   252 	CFsPlugin* plugin=NULL;
   253 	FsPluginManager::LockChain();
   253 	FsPluginManager::LockChain();
   254 	TInt err = FsPluginManager::Plugin(plugin, aRequest->Message().Int2());
   254 	TInt err = FsPluginManager::Plugin(plugin, aRequest->Message().Int2());
   255 	if(err != KErrNone)
   255 	if(err != KErrNone) //should be ok but just in case
       
   256 	    {
       
   257 	    FsPluginManager::UnlockChain();
   256 		return err;
   258 		return err;
       
   259 	    }
   257 
   260 
   258 	TInt r = KErrNotFound;
   261 	TInt r = KErrNotFound;
   259 	if(plugin)
   262 	if(plugin)
   260 		{
   263 		{
   261 		aRequest->WriteL(KMsgPtr0, plugin->Name());
   264 		aRequest->WriteL(KMsgPtr0, plugin->Name());