mirror of https://github.com/acidanthera/audk.git
update the FindVariable judgment condition.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7970 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
6f90dfbc0d
commit
8d1d25edd8
|
@ -463,7 +463,7 @@ FindVariable (
|
|||
PtrTrack->StartPtr = IndexTable->StartPtr;
|
||||
PtrTrack->EndPtr = IndexTable->EndPtr;
|
||||
|
||||
while (IsValidVariableHeader (Variable) && (Variable <= IndexTable->EndPtr)) {
|
||||
while ((Variable < IndexTable->EndPtr) && IsValidVariableHeader (Variable)) {
|
||||
if (Variable->State == VAR_ADDED) {
|
||||
//
|
||||
// Record Variable in VariableIndex HOB
|
||||
|
|
Loading…
Reference in New Issue