persistentstorage/centralrepository/cenrepsrv/install.cpp
changeset 19 d6ef85bc5971
parent 0 08ec8eefde2f
child 22 a7ba600cb39d
--- a/persistentstorage/centralrepository/cenrepsrv/install.cpp	Mon May 03 14:09:14 2010 +0300
+++ b/persistentstorage/centralrepository/cenrepsrv/install.cpp	Fri May 14 17:36:33 2010 +0300
@@ -434,11 +434,7 @@
 void CCentRepSWIWatcher::ReadAndInternalizeInstallDirL(const TDesC& aInstallDirFilePath)
 	{
 	RFile file;
-	TInt e=file.Open(TServerResources::iFs,aInstallDirFilePath, EFileRead|EFileShareReadersOnly);
-	if(e == KErrNotFound || e == KErrPathNotFound)
-		{
-		User::Leave(KErrNotFound);
-		}
+	User::LeaveIfError(file.Open(TServerResources::iFs,aInstallDirFilePath, EFileRead|EFileShareReadersOnly));
 	CleanupClosePushL(file);
 
 	CDirectFileStore* store = CDirectFileStore::FromLC (file);