diff -r 211563e4b919 -r 6b6fd149daa2 persistentstorage/centralrepository/cenrepsrv/install.cpp --- a/persistentstorage/centralrepository/cenrepsrv/install.cpp Wed Apr 14 17:46:32 2010 +0300 +++ b/persistentstorage/centralrepository/cenrepsrv/install.cpp Tue Apr 27 18:25:57 2010 +0300 @@ -1,4 +1,4 @@ -// Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 1997-2010 Nokia Corporation and/or its subsidiary(-ies). // All rights reserved. // This component and the accompanying materials are made available // under the terms of "Eclipse Public License v1.0" @@ -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);