]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/C/Common/FirmwareVolumeBuffer.c
BaseTools: Follow PI spec to update ExtendedSize in EFI_FFS_FILE_HEADER2
[mirror_edk2.git] / BaseTools / Source / C / Common / FirmwareVolumeBuffer.c
index 01d4e72a5683d6d386ab33f20366477f0e4367b1..7988d8e43a059a62dfac85d0f4528a153e1f8767 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
 EFI Firmware Volume routines which work on a Fv image in buffers.\r
 \r
-Copyright (c) 1999 - 2014, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 1999 - 2015, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -864,7 +864,7 @@ Returns:
     return 0;\r
   }\r
   if (Ffs->Attributes & FFS_ATTRIB_LARGE_FILE) {\r
-    return ((EFI_FFS_FILE_HEADER2 *)Ffs)->ExtendedSize;\r
+    return (UINT32) ((EFI_FFS_FILE_HEADER2 *)Ffs)->ExtendedSize;\r
   }\r
   return FvBufExpand3ByteSize(Ffs->Size);\r
 }\r