From ca70b4c21364180b35bdbcf5230a526666f46775 Mon Sep 17 00:00:00 2001 From: Pete Batard Date: Thu, 10 Sep 2020 17:55:07 +0100 Subject: [PATCH] [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. --- src/iso.c | 9 ++++----- src/rufus.rc | 10 +++++----- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/src/iso.c b/src/iso.c index eeb1f323..030f12d0 100644 --- a/src/iso.c +++ b/src/iso.c @@ -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) { diff --git a/src/rufus.rc b/src/rufus.rc index c7fb6546..56b5f083 100644 --- a/src/rufus.rc +++ b/src/rufus.rc @@ -33,7 +33,7 @@ LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL IDD_DIALOG DIALOGEX 12, 12, 232, 326 STYLE DS_SETFONT | DS_MODALFRAME | DS_CENTER | WS_MINIMIZEBOX | WS_POPUP | WS_CAPTION | WS_SYSMENU EXSTYLE WS_EX_ACCEPTFILES -CAPTION "Rufus 3.12.1699" +CAPTION "Rufus 3.12.1700" FONT 9, "Segoe UI Symbol", 400, 0, 0x0 BEGIN LTEXT "Drive Properties",IDS_DRIVE_PROPERTIES_TXT,8,6,53,12,NOT WS_GROUP @@ -395,8 +395,8 @@ END // VS_VERSION_INFO VERSIONINFO - FILEVERSION 3,12,1699,0 - PRODUCTVERSION 3,12,1699,0 + FILEVERSION 3,12,1700,0 + PRODUCTVERSION 3,12,1700,0 FILEFLAGSMASK 0x3fL #ifdef _DEBUG FILEFLAGS 0x1L @@ -414,13 +414,13 @@ BEGIN VALUE "Comments", "https://rufus.ie" VALUE "CompanyName", "Akeo Consulting" VALUE "FileDescription", "Rufus" - VALUE "FileVersion", "3.12.1699" + VALUE "FileVersion", "3.12.1700" VALUE "InternalName", "Rufus" VALUE "LegalCopyright", "© 2011-2020 Pete Batard (GPL v3)" VALUE "LegalTrademarks", "https://www.gnu.org/licenses/gpl-3.0.html" VALUE "OriginalFilename", "rufus-3.12.exe" VALUE "ProductName", "Rufus" - VALUE "ProductVersion", "3.12.1699" + VALUE "ProductVersion", "3.12.1700" END END BLOCK "VarFileInfo"