fix a bug that FindVariable() may set GoneThrough flag wrongly when a >64K variable exists.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10524 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
erictian 2010-05-20 09:12:12 +00:00
parent fe21112135
commit 2ad29d0fe4
1 changed files with 1 additions and 1 deletions

View File

@ -492,7 +492,7 @@ FindVariable (
//
// If gone through the VariableStore, that means we never find in Firmware any more.
//
if (IndexTable->Length < VARIABLE_INDEX_TABLE_VOLUME) {
if ((IndexTable->Length < VARIABLE_INDEX_TABLE_VOLUME) && (!StopRecord)) {
IndexTable->GoneThrough = 1;
}