mirror of
https://github.com/edera-dev/sprout.git
synced 2025-12-19 13:50:16 +00:00
fix(bootloader-interface): when there are no entries, don't attempt to set LoaderEntries
This commit is contained in:
@@ -134,6 +134,12 @@ impl BootloaderInterface {
|
||||
// Add a null terminator to the end of the entry.
|
||||
data.extend_from_slice(&[0, 0]);
|
||||
}
|
||||
|
||||
// If no data was generated, we will do nothing.
|
||||
if data.is_empty() {
|
||||
return Ok(());
|
||||
}
|
||||
|
||||
Self::VENDOR.set(
|
||||
"LoaderEntries",
|
||||
&data,
|
||||
|
||||
Reference in New Issue
Block a user