Newer
Older
AMI-Aptio-BIOS-Reversed / CpPlatPkg / Whea / WheaErrorLog / WheaErrorLog.c
@Ajax Dong Ajax Dong 7 days ago 629 bytes Recovering names
/** @file
  WheaErrorLog.c -- WheaErrorLog

  Auto-converted from IDA decompiler output.
  Functions: 1

Copyright (c) HR650X BIOS Decompilation Project
**/

#include "WheaErrorLog.h"


// Function: ModuleEntryPoint
EFI_STATUS
ModuleEntryPoint (
  EFI_HANDLE        ImageHandle,
  EFI_SYSTEM_TABLE *SystemTable
  )
{
  EFI_STATUS Status;

  // Constructor chain: WheaErrorLogInitializeContext() -> main init -> cleanup on failure.
  WheaErrorLogInitializeContext();
  Status = WheaErrorLogInitialize(ImageHandle, SystemTable);
  if (Status < 0) {
    WheaErrorLogCleanupOnError(ImageHandle, SystemTable);
  }

  return Status;
}