From 0d2eaa37c10a71e71688858fe2a24a665c435ea0 Mon Sep 17 00:00:00 2001 From: Alex Zenla Date: Sat, 26 Sep 2026 20:21:50 -0700 Subject: [PATCH] fix(media-loader): treat any non-zero boot policy as true LoadFile2 compared the boot policy to Boolean::TRUE, which only matches the value 1. UEFI treats any non-zero BOOLEAN as TRUE, so check it the same way. --- crates/eficore/src/media_loader.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/eficore/src/media_loader.rs b/crates/eficore/src/media_loader.rs index 1976d97..6bdbb78 100644 --- a/crates/eficore/src/media_loader.rs +++ b/crates/eficore/src/media_loader.rs @@ -70,8 +70,8 @@ impl MediaLoaderHandle { } // Boot policy must not be true, and if it is, that is special behavior that is irrelevant - // for the media loader concept. - if boot_policy == Boolean::TRUE { + // for the media loader concept. Any non-zero value is true. + if bool::from(boot_policy) { return Status::UNSUPPORTED; }