SecurityPkg: Fix spelling errors
https://bugzilla.tianocore.org/show_bug.cgi?id=2265 Cc: Jiewen Yao <jiewen.yao@intel.com> Cc: Jian J Wang <jian.j.wang@intel.com> Cc: Chao Zhang <chao.b.zhang@intel.com> Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com> Reviewed-by: Jiewen Yao <Jiewen.yao@intel.com> Reviewed-by: Jian J Wang <jian.j.wang@intel.com>
This commit is contained in:
committed by
Michael D Kinney
parent
6e7e9b9578
commit
d6b926e76e
@ -10,12 +10,12 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
|
||||
/**
|
||||
Read file content into BufferPtr, the size of the allocate buffer
|
||||
is *FileSize plus AddtionAllocateSize.
|
||||
is *FileSize plus AdditionAllocateSize.
|
||||
|
||||
@param[in] FileHandle The file to be read.
|
||||
@param[in, out] BufferPtr Pointers to the pointer of allocated buffer.
|
||||
@param[out] FileSize Size of input file
|
||||
@param[in] AddtionAllocateSize Addtion size the buffer need to be allocated.
|
||||
@param[in] AdditionAllocateSize Addition size the buffer need to be allocated.
|
||||
In case the buffer need to contain others besides the file content.
|
||||
|
||||
@retval EFI_SUCCESS The file was read into the buffer.
|
||||
@ -29,7 +29,7 @@ ReadFileContent (
|
||||
IN EFI_FILE_HANDLE FileHandle,
|
||||
IN OUT VOID **BufferPtr,
|
||||
OUT UINTN *FileSize,
|
||||
IN UINTN AddtionAllocateSize
|
||||
IN UINTN AdditionAllocateSize
|
||||
)
|
||||
|
||||
{
|
||||
@ -62,7 +62,7 @@ ReadFileContent (
|
||||
goto ON_EXIT;
|
||||
}
|
||||
|
||||
BufferSize = (UINTN) SourceFileSize + AddtionAllocateSize;
|
||||
BufferSize = (UINTN) SourceFileSize + AdditionAllocateSize;
|
||||
Buffer = AllocateZeroPool(BufferSize);
|
||||
if (Buffer == NULL) {
|
||||
return EFI_OUT_OF_RESOURCES;
|
||||
|
Reference in New Issue
Block a user