Merge R8 tracker #8374 to make EmuVariable.GetNextVariableName() comply with UEFI...
authorxli24 <xli24@de2fecce-e211-0410-80a6-f3fac2684e05>
Wed, 6 Dec 2006 05:32:17 +0000 (05:32 +0000)
committerxli24 <xli24@de2fecce-e211-0410-80a6-f3fac2684e05>
Wed, 6 Dec 2006 05:32:17 +0000 (05:32 +0000)
git-svn-id: https://edk2.tianocore.org/svn/edk2/trunk@2058 de2fecce-e211-0410-80a6-f3fac2684e05

edk2/EdkModulePkg/Universal/EmuVariable/RuntimeDxe/EmuVariable.c

index 6614bb0..fe1ac92 100644 (file)
@@ -413,7 +413,7 @@ Returns:
   UINTN                   VarNameSize;\r
   EFI_STATUS              Status;\r
 \r
-  if (VariableNameSize == NULL || VendorGuid == NULL) {\r
+  if (VariableNameSize == NULL || VariableName == NULL || VendorGuid == NULL) {\r
     return EFI_INVALID_PARAMETER;\r
   }\r
 \r