From 6426c8ffb4f625e86c144d90e7bca8069fb165f0 Mon Sep 17 00:00:00 2001 From: lgao4 Date: Fri, 23 Jan 2009 14:45:13 +0000 Subject: Add comments for these header files git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7364 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Library/DxePlatDriOverLib/PlatDriOverLib.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'MdeModulePkg/Library') diff --git a/MdeModulePkg/Library/DxePlatDriOverLib/PlatDriOverLib.c b/MdeModulePkg/Library/DxePlatDriOverLib/PlatDriOverLib.c index f2aad41e7a..e9749d68d4 100644 --- a/MdeModulePkg/Library/DxePlatDriOverLib/PlatDriOverLib.c +++ b/MdeModulePkg/Library/DxePlatDriOverLib/PlatDriOverLib.c @@ -206,7 +206,7 @@ InitOverridesMapping ( VariableIndex += ((sizeof(UINT32) - ((UINTN) (VariableIndex))) & (sizeof(UINT32) - 1)); // - // Get all DriverDevicePath[] + // Get all DriverImageDevicePath[] // for (Index = 0; Index < DriverNumber; Index++) { // @@ -240,10 +240,9 @@ InitOverridesMapping ( // NotEnd indicates whether current variable is the end variable. // if (NotEnd != 0) { - UnicodeSPrint (OverrideVariableName, sizeof (OverrideVariableName), L"PlatDriOver%d", VariableNum); + UnicodeSPrint (OverrideVariableName, sizeof (OverrideVariableName), L"PlatDriOver%d", VariableNum++); VariableBuffer = GetVariableAndSize (OverrideVariableName, &gEfiOverrideVariableGuid, &BufferSize); ASSERT ((UINTN) VariableBuffer % sizeof(UINTN) == 0); - VariableNum++; if (VariableBuffer == NULL) { FreeMappingDatabase (MappingDataBase); return EFI_VOLUME_CORRUPTED; -- cgit v1.2.3