Newer
Older
AMI-Aptio-BIOS-Reversed / PurleyPlatPkg / Platform / Pei / EarlyVideoPei / SetMem.c
@Ajax Dong Ajax Dong 2 days ago 431 bytes Full restructure
void *__fastcall SetMem(void *buf, unsigned int count, char value)
{
  int Ppi; // eax

  if ( count - 1 > -1 - (int)buf )
  {
    Ppi = PeiLocatePpi();
    if ( Ppi )
      (*(void (__cdecl **)(const char *, int, const char *))(Ppi + 4))(
        "e:\\hs\\MdePkg\\Library\\BaseMemoryLibRepStr\\SetMemWrapper.c",
        54,
        "(Length - 1) <= (0xFFFFFFFF - (UINTN)Buffer)");
  }
  return InternalSetMem(buf, count, value);
}