]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Library/DxePlatDriOverLib/PlatDriOverLib.c
Add comments for these header files
[mirror_edk2.git] / MdeModulePkg / Library / DxePlatDriOverLib / PlatDriOverLib.c
index f2aad41e7a4229479233cf51ebdb86f8b2b8af0e..e9749d68d4553ccad91817edc53970b377d3c7b5 100644 (file)
@@ -206,7 +206,7 @@ InitOverridesMapping (
       VariableIndex += ((sizeof(UINT32) - ((UINTN) (VariableIndex))) & (sizeof(UINT32) - 1));\r
 \r
       //\r
-      // Get all DriverDevicePath[]\r
+      // Get all DriverImageDevicePath[]\r
       //\r
       for (Index = 0; Index < DriverNumber; Index++) {\r
         //\r
@@ -240,10 +240,9 @@ InitOverridesMapping (
     // NotEnd indicates whether current variable is the end variable.\r
     //\r
     if (NotEnd != 0) {\r
-      UnicodeSPrint (OverrideVariableName, sizeof (OverrideVariableName), L"PlatDriOver%d", VariableNum);\r
+      UnicodeSPrint (OverrideVariableName, sizeof (OverrideVariableName), L"PlatDriOver%d", VariableNum++);\r
       VariableBuffer = GetVariableAndSize (OverrideVariableName, &gEfiOverrideVariableGuid, &BufferSize);\r
       ASSERT ((UINTN) VariableBuffer % sizeof(UINTN) == 0);\r
-      VariableNum++;\r
       if (VariableBuffer == NULL) {\r
         FreeMappingDatabase (MappingDataBase);\r
         return EFI_VOLUME_CORRUPTED;\r