/* Create a new line and append it to the line list. Fields affected: NumLines Lines */
HEFI_EDITOR_LINE* HBufferImageCreateLine(VOID)
/* Create a new line and append it to the line list. Fields affected: NumLines Lines */
HEFI_EDITOR_LINE* HBufferImageCreateLine(VOID)
{
  HEFI_EDITOR_LINE  *Line;
  Line = AllocateZeroPool (sizeof (HEFI_EDITOR_LINE));
  if (Line == NULL) {
    return NULL;
  }
  Line->Signature = EFI_EDITOR_LINE_LIST;
  Line->Size      = 0;
  HBufferImage.NumLines++;
  InsertTailList (HBufferImage.ListHead, &Line->Link);
  if (HBufferImage.Lines == NULL) {
    HBufferImage.Lines = CR (
                           HBufferImage.ListHead->ForwardLink,
                           HEFI_EDITOR_LINE,
                           Link,
                           EFI_EDITOR_LINE_LIST
                           );
  }
  return Line;
}