]> git.proxmox.com Git - mirror_edk2.git/commitdiff
fix a bug that FindVariable() may set GoneThrough flag wrongly when a >64K variable...
authorerictian <erictian@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 20 May 2010 09:12:12 +0000 (09:12 +0000)
committererictian <erictian@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 20 May 2010 09:12:12 +0000 (09:12 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10524 6f19259b-4bc3-4df7-8a09-765794883524

MdeModulePkg/Universal/Variable/Pei/Variable.c

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