mirror of
https://github.com/edera-dev/sprout.git
synced 2026-11-04 23:02:21 +00:00
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:
1 parent
9595fd53aa
commit
0d2eaa37c1
1 file changed
+2
-2
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user