Add more check for index whether exceed maximum value of fv count.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2114 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
klu2 2006-12-19 02:44:36 +00:00
parent 34da4fdb4d
commit 95ed6470d1
1 changed files with 5 additions and 1 deletions

View File

@ -100,7 +100,11 @@ Returns:
//
// Use the next free slot for a new entry
//
UpdateIndex = mFvbCount++;;
UpdateIndex = mFvbCount++;
//
// Check the UpdateIndex whether exceed the maximum value.
//
ASSERT (UpdateIndex < MAX_FVB_COUNT);
mFvbEntry[UpdateIndex].Handle = Handle;
}
//