Code Scrub:
[mirror_edk2.git] / 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