mirror of https://github.com/acidanthera/audk.git
Add more check for index whether exceed maximum value of fv count.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2115 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
95ed6470d1
commit
a720748034
|
@ -102,7 +102,8 @@ Returns:
|
|||
//
|
||||
// Use the next free slot for a new entry
|
||||
//
|
||||
UpdateIndex = mFvbCount++;;
|
||||
UpdateIndex = mFvbCount++;
|
||||
ASSERT (UpdateIndex < MAX_FVB_COUNT);
|
||||
mFvbEntry[UpdateIndex].Handle = Handle;
|
||||
}
|
||||
//
|
||||
|
|
Loading…
Reference in New Issue