/* This function returns a pointer to the current FV and the size. */
EFI_STATUS GetFvHeader(OUT EFI_FIRMWARE_VOLUME_HEADER **FvHeader, OUT UINT32 *FvLength)
/* This function returns a pointer to the current FV and the size. */
EFI_STATUS GetFvHeader(OUT EFI_FIRMWARE_VOLUME_HEADER **FvHeader, OUT UINT32 *FvLength)
{
  if (mFvHeader == NULL || mFvLength == 0) {
    return EFI_ABORTED;
  }
  if (FvHeader == NULL) {
    return EFI_INVALID_PARAMETER;
  }
  *FvHeader = mFvHeader;
  *FvLength = mFvLength;
  return EFI_SUCCESS;
}