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
This commit is contained in:
klu2 2010-01-14 05:31:07 +00:00
parent 08a29011c9
commit 1c738c8f97
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}
}
}