From 1c738c8f973f0bcd203ec6829999d0bb7bd9abf5 Mon Sep 17 00:00:00 2001 From: klu2 Date: Thu, 14 Jan 2010 05:31:07 +0000 Subject: [PATCH] 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 --- MdeModulePkg/Core/Pei/FwVol/FwVol.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } } } -- 2.39.2