Fix checking for EFI_INVALID_PARAMETER

This commit is contained in:
Josh Holtrop 2022-03-16 14:37:46 -04:00
parent 706f2c1c5d
commit a855702214

View File

@ -139,7 +139,7 @@ extern (C) EFI_STATUS efi_main(EFI_HANDLE image_handle, EFI_SYSTEM_TABLE * st)
get_memory_map();
EFI_STATUS status = st.BootServices.ExitBootServices(image_handle, memory_map_key);
if ((status & 0xFFu) == (EFI_INVALID_PARAMETER & 0xFFu))
if (status == EFI_INVALID_PARAMETER)
{
continue;
}