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.
This commit is contained in:
alex authored and Alex Zenla committed 2026-09-26 20:52:15 -07:00
1 parent 9595fd53aa
commit 0d2eaa37c1
1 file changed
+2 -2
+2 -2
View File
@@ -70,8 +70,8 @@ impl MediaLoaderHandle {
} }
// Boot policy must not be true, and if it is, that is special behavior that is irrelevant // Boot policy must not be true, and if it is, that is special behavior that is irrelevant
// for the media loader concept. // for the media loader concept. Any non-zero value is true.
if boot_policy == Boolean::TRUE { if bool::from(boot_policy) {
return Status::UNSUPPORTED; return Status::UNSUPPORTED;
} }