Code Scrub:
authorjji4 <jji4@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 13 Nov 2008 01:47:14 +0000 (01:47 +0000)
committerjji4 <jji4@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 13 Nov 2008 01:47:14 +0000 (01:47 +0000)
/MdeModulePkg/Universal/Variable/Pei/Variable.c re-scrubbed

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6477 6f19259b-4bc3-4df7-8a09-765794883524

MdeModulePkg/Universal/Variable/Pei/Variable.c

index 597ec9c..3a1ae41 100644 (file)
@@ -315,7 +315,7 @@ CompareWithValidVariable (
         ) {\r
       ASSERT (NameSizeOfVariable (Variable) != 0);\r
       Point = (VOID *) GetVariableNamePtr (Variable);\r
-      if (!CompareMem (VariableName, Point, NameSizeOfVariable (Variable))) {\r
+      if (CompareMem (VariableName, Point, NameSizeOfVariable (Variable)) == 0) {\r
         PtrTrack->CurrPtr = Variable;\r
         return EFI_SUCCESS;\r
       }\r