installationservices/swi/source/sisregistry/server/sisregistryserver.cpp
changeset 42 d17dc5398051
parent 0 ba25891c3a9e
child 50 c6e8afe0ba85
equal deleted inserted replaced
37:6e7b00453237 42:d17dc5398051
   119 	CSecurityPolicy::ReleaseResource();
   119 	CSecurityPolicy::ReleaseResource();
   120 	delete iShutdown;
   120 	delete iShutdown;
   121 	iShutdown = NULL; //required in case the server dies before the session
   121 	iShutdown = NULL; //required in case the server dies before the session
   122 	}
   122 	}
   123 
   123 
   124 CSession2* CSisRegistryServer::NewSessionL(const TVersion& aClientVersion, const RMessage2&) const
   124 CSession2* CSisRegistryServer::NewSessionL(const TVersion& aClientVersion, const RMessage2& aMessage) const
   125 //
   125 //
   126 // Create a new client session. This should really check the version number.
   126 // Create a new client session. This should really check the version number.
   127 //
   127 //
   128 	{
   128 	{
   129 	if (aClientVersion == TVersion(1,0,0))
   129 	if (aClientVersion == TVersion(1,0,0))
   130 		{
   130 		{
   131 		return new(ELeave) CSisRegistrySession();	
   131 		return new(ELeave) CSisRegistrySession(aMessage.SecureId());
   132 		}
   132 		}
   133 	else
   133 	else
   134 		{
   134 		{
   135 		User::Leave(KErrCouldNotConnect);
   135 		User::Leave(KErrCouldNotConnect);
   136 		return NULL;
   136 		return NULL;