summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Core/Pei
diff options
context:
space:
mode:
authorklu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524>2010-01-14 05:31:07 +0000
committerklu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524>2010-01-14 05:31:07 +0000
commit1c738c8f973f0bcd203ec6829999d0bb7bd9abf5 (patch)
treece8a8afd6e52c527fe92ab777456f44fbfc36940 /MdeModulePkg/Core/Pei
parent08a29011c9496227ad255f317471e5ad87354666 (diff)
downloadedk2-platforms-1c738c8f973f0bcd203ec6829999d0bb7bd9abf5.tar.xz
When found the file according to given file name guid, PeiFfs2FvPpiFindFileByName() should break the searching loop and return success.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9742 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Core/Pei')
-rw-r--r--MdeModulePkg/Core/Pei/FwVol/FwVol.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/MdeModulePkg/Core/Pei/FwVol/FwVol.c b/MdeModulePkg/Core/Pei/FwVol/FwVol.c
index 19e3f1df3d..88eb2b2a15 100644
--- a/MdeModulePkg/Core/Pei/FwVol/FwVol.c
+++ b/MdeModulePkg/Core/Pei/FwVol/FwVol.c
@@ -1,7 +1,7 @@
/** @file
Pei Core Firmware File System service routines.
-Copyright (c) 2006 - 2009, Intel Corporation
+Copyright (c) 2006 - 2010, Intel Corporation
All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
@@ -1101,6 +1101,7 @@ PeiFfs2FvPpiFindFileByName (
Status = FindFileEx (PrivateData->Fv[Index].FvHandle, FileName, 0, FileHandle, NULL);
if (!EFI_ERROR (Status)) {
*FvHandle = PrivateData->Fv[Index].FvHandle;
+ break;
}
}
}