mirror of
https://github.com/pbatard/rufus.git
synced 2025-06-01 23:38:30 -04:00
[iso] fix 'internal error' notice due to bootriscv###.efi support
* These bootloaders will require LFN support. Since we don't expect that many people to create bootable media for RISC-V derived from bootloaders contained in a 'efi.img`, we simply ignore these for now.
This commit is contained in:
parent
f04ed61805
commit
ca70b4c213
2 changed files with 9 additions and 10 deletions
|
@ -1389,17 +1389,16 @@ BOOL HasEfiImgBootLoaders(void)
|
|||
dc = direntry.entry[26] + (direntry.entry[27] << 8);
|
||||
|
||||
for (i = 0; i < ARRAYSIZE(efi_bootname); i++) {
|
||||
// Sanity check in case the EFI forum comes up with a 'bootmips64.efi' or something...
|
||||
if (strlen(efi_bootname[i]) > 12) {
|
||||
uprintf("Internal error: FAT 8.3");
|
||||
// TODO: bootriscv###.efi will need LFN support but cross that bridge when/if we get there...
|
||||
if (strlen(efi_bootname[i]) > 12)
|
||||
continue;
|
||||
}
|
||||
for (j = 0, k = 0; efi_bootname[i][j] != 0; j++) {
|
||||
if (efi_bootname[i][j] == '.') {
|
||||
while (k < 8)
|
||||
name[k++] = ' ';
|
||||
} else
|
||||
} else {
|
||||
name[k++] = toupper(efi_bootname[i][j]);
|
||||
}
|
||||
}
|
||||
c = libfat_searchdir(lf_fs, dc, name, &direntry);
|
||||
if (c > 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue