//\r
// Use the next free slot for a new entry\r
//\r
- UpdateIndex = mFvbCount++;;\r
+ UpdateIndex = mFvbCount++;\r
+ //\r
+ // Check the UpdateIndex whether exceed the maximum value.\r
+ //\r
+ ASSERT (UpdateIndex < MAX_FVB_COUNT);\r
mFvbEntry[UpdateIndex].Handle = Handle;\r
}\r
//\r