persistentstorage/centralrepository/cenrepsrv/install.cpp
changeset 19 d6ef85bc5971
parent 0 08ec8eefde2f
child 22 a7ba600cb39d
equal deleted inserted replaced
17:55f2396f6d25 19:d6ef85bc5971
   432  		
   432  		
   433 
   433 
   434 void CCentRepSWIWatcher::ReadAndInternalizeInstallDirL(const TDesC& aInstallDirFilePath)
   434 void CCentRepSWIWatcher::ReadAndInternalizeInstallDirL(const TDesC& aInstallDirFilePath)
   435 	{
   435 	{
   436 	RFile file;
   436 	RFile file;
   437 	TInt e=file.Open(TServerResources::iFs,aInstallDirFilePath, EFileRead|EFileShareReadersOnly);
   437 	User::LeaveIfError(file.Open(TServerResources::iFs,aInstallDirFilePath, EFileRead|EFileShareReadersOnly));
   438 	if(e == KErrNotFound || e == KErrPathNotFound)
       
   439 		{
       
   440 		User::Leave(KErrNotFound);
       
   441 		}
       
   442 	CleanupClosePushL(file);
   438 	CleanupClosePushL(file);
   443 
   439 
   444 	CDirectFileStore* store = CDirectFileStore::FromLC (file);
   440 	CDirectFileStore* store = CDirectFileStore::FromLC (file);
   445 	if(store->Type()[0] != KDirectFileStoreLayoutUid)
   441 	if(store->Type()[0] != KDirectFileStoreLayoutUid)
   446 		{
   442 		{