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

  Auto-converted from IDA decompiler output.
  Functions: 1

Copyright (c) HR650X BIOS Decompilation Project
**/

#include "WheaErrorInj.h"


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

  // Constructor chain: InitializeWheaErrorInjection() -> RegisterWheaErrorInjection() -> UnregisterWheaErrorInjection() on failure.
  InitializeWheaErrorInjection();
  Status = RegisterWheaErrorInjection(ImageHandle, SystemTable);
  if (Status < 0) {
    UnregisterWheaErrorInjection();
    return Status;
  }

  return Status;
}