/* Clears out all files from the Fv buffer in memory */
EFI_STATUS FvBufChecksumHeader(IN OUT VOID *Fv)
/* Clears out all files from the Fv buffer in memory */
EFI_STATUS FvBufChecksumHeader(IN OUT VOID *Fv)
{
  EFI_FIRMWARE_VOLUME_HEADER* FvHeader = (EFI_FIRMWARE_VOLUME_HEADER*)Fv;
  FvHeader->Checksum = 0;
  FvHeader->Checksum =
    FvBufCalculateChecksum16 (
      (UINT16*) FvHeader,
      FvHeader->HeaderLength / sizeof (UINT16)
      );
  return EFI_SUCCESS;
}