diff --git a/MdeModulePkg/Universal/Variable/Pei/Variable.c b/MdeModulePkg/Universal/Variable/Pei/Variable.c index 96a52f23d1..77b3eaeb21 100644 --- a/MdeModulePkg/Universal/Variable/Pei/Variable.c +++ b/MdeModulePkg/Universal/Variable/Pei/Variable.c @@ -57,7 +57,7 @@ PeimInitializeVariableServices ( @param VarStoreHeader Pointer to the Variable Store Header. - @return Pointer to the first variable header + @return Pointer to the first variable header. **/ VARIABLE_HEADER * @@ -66,18 +66,22 @@ GetStartPointer ( ) { // - // The end of variable store + // The start of variable store // return (VARIABLE_HEADER *) HEADER_ALIGN (VarStoreHeader + 1); } /** - This code gets the pointer to the last variable memory pointer byte. - @param VarStoreHeader Pointer to the Variable Store Header. + Gets the pointer to the end of the variable storage area. - @return VARIABLE_HEADER* pointer to last unavailable Variable Header. + This function gets pointer to the end of the variable storage + area, according to the input variable store header. + + @param VarStoreHeader Pointer to the Variable Store Header. + + @return Pointer to the end of the variable storage area. **/ VARIABLE_HEADER * diff --git a/MdeModulePkg/Universal/Variable/RuntimeDxe/Variable.c b/MdeModulePkg/Universal/Variable/RuntimeDxe/Variable.c index 1ea2f84dda..dc8622db81 100644 --- a/MdeModulePkg/Universal/Variable/RuntimeDxe/Variable.c +++ b/MdeModulePkg/Universal/Variable/RuntimeDxe/Variable.c @@ -681,7 +681,7 @@ GetStartPointer ( ) { // - // The end of variable store. + // The start of variable store. // return (VARIABLE_HEADER *) HEADER_ALIGN (VarStoreHeader + 1); }