mirror of https://github.com/acidanthera/audk.git
OvmfPkg/QemuKernelLoaderFsDxe: use SIZE_OF_EFI_FILE_INFO
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
df84bb5eda
commit
bba72ffbe1
|
@ -290,7 +290,7 @@ QemuKernelBlobTypeToFileInfo (
|
|||
}
|
||||
|
||||
NameSize = (StrLen (Name) + 1) * 2;
|
||||
FileInfoSize = OFFSET_OF (EFI_FILE_INFO, FileName) + NameSize;
|
||||
FileInfoSize = SIZE_OF_EFI_FILE_INFO + NameSize;
|
||||
|
||||
OriginalBufferSize = *BufferSize;
|
||||
*BufferSize = FileInfoSize;
|
||||
|
|
Loading…
Reference in New Issue