/* Function to compare 2 MEMORY_PROTECTION_RANGE based on range base. */
INTN EFIAPI ProtectionRangeCompare(IN CONST VOID *Buffer1, IN CONST VOID *Buffer2)
/* Function to compare 2 MEMORY_PROTECTION_RANGE based on range base. */
INTN EFIAPI ProtectionRangeCompare(IN CONST VOID *Buffer1, IN CONST VOID *Buffer2)
{
  if (((MEMORY_PROTECTION_RANGE *)Buffer1)->Range.Base > ((MEMORY_PROTECTION_RANGE *)Buffer2)->Range.Base) {
    return 1;
  } else if (((MEMORY_PROTECTION_RANGE *)Buffer1)->Range.Base < ((MEMORY_PROTECTION_RANGE *)Buffer2)->Range.Base) {
    return -1;
  }
  return 0;
}