Skip to content

Commit fff39c5

Browse files
committed
[misc] fix UEFI:NTFS partition not being added when needed in MBR mode
* Also add support for SD card readers identifying themselves as SDXC.
1 parent 710bfe7 commit fff39c5

File tree

4 files changed

+10
-9
lines changed

4 files changed

+10
-9
lines changed

src/dev.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ BOOL GetDevices(DWORD devnum)
465465
// Oh, and we also have card devices (e.g. 'SCSI\DiskO2Micro_SD_...') under the SCSI enumerator...
466466
const char* scsi_disk_prefix = "SCSI\\Disk";
467467
const char* scsi_card_name[] = {
468-
"_SD_", "_SDHC_", "_MMC_", "_MS_", "_MSPro_", "_xDPicture_", "_O2Media_"
468+
"_SD_", "_SDHC_", "_SDXC_", "_MMC_", "_MS_", "_MSPro_", "_xDPicture_", "_O2Media_"
469469
};
470470
const char* usb_speed_name[USB_SPEED_MAX] = { "USB", "USB 1.0", "USB 1.1", "USB 2.0", "USB 3.0", "USB 3.1" };
471471
const char* windows_sandbox_vhd_label = "PortableBaseLayer";

src/format.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* Rufus: The Reliable USB Formatting Utility
33
* Formatting function calls
4-
* Copyright © 2011-2023 Pete Batard <pete@akeo.ie>
4+
* Copyright © 2011-2024 Pete Batard <pete@akeo.ie>
55
*
66
* This program is free software: you can redistribute it and/or modify
77
* it under the terms of the GNU General Public License as published by
@@ -1463,7 +1463,8 @@ DWORD WINAPI FormatThread(void* param)
14631463
extra_partitions = XP_ESP | XP_MSR;
14641464
else if ( ((fs_type == FS_NTFS) || (fs_type == FS_EXFAT)) &&
14651465
((boot_type == BT_UEFI_NTFS) || ((boot_type == BT_IMAGE) && IS_EFI_BOOTABLE(img_report) &&
1466-
((target_type == TT_UEFI) || (windows_to_go) || (allow_dual_uefi_bios) || (img_report.has_4GB_file)))) )
1466+
((target_type == TT_UEFI) || (windows_to_go) || (allow_dual_uefi_bios) ||
1467+
(img_report.has_4GB_file) || (img_report.needs_ntfs)))) )
14671468
extra_partitions = XP_UEFI_NTFS;
14681469
else if ((boot_type == BT_IMAGE) && !write_as_image && HAS_PERSISTENCE(img_report) && persistence_size)
14691470
extra_partitions = XP_CASPER;

src/iso.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ static BOOL check_iso_props(const char* psz_dirname, int64_t file_length, const
298298
// https://salsa.debian.org/live-team/live-build/-/commit/5bff71fea2dd54adcd6c428d3f1981734079a2f7
299299
// Because of this, if we detect a small bootx64.efi file, we assert that it's a
300300
// broken link and try to extract a "good" version from the El-Torito image.
301-
if ((safe_stricmp(psz_basename, efi_bootname[2]) == 0) && (file_length < 100)) {
301+
if ((safe_stricmp(psz_basename, efi_bootname[2]) == 0) && (file_length < 256)) {
302302
img_report.has_efi |= 0x4000;
303303
static_strcpy(img_report.efi_img_path, "[BOOT]/1-Boot-NoEmul.img");
304304
}

src/rufus.rc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
3333
IDD_DIALOG DIALOGEX 12, 12, 232, 326
3434
STYLE DS_SETFONT | DS_MODALFRAME | DS_CENTER | WS_MINIMIZEBOX | WS_POPUP | WS_CAPTION | WS_SYSMENU
3535
EXSTYLE WS_EX_ACCEPTFILES
36-
CAPTION "Rufus 4.4.2101"
36+
CAPTION "Rufus 4.4.2102"
3737
FONT 9, "Segoe UI Symbol", 400, 0, 0x0
3838
BEGIN
3939
LTEXT "Drive Properties",IDS_DRIVE_PROPERTIES_TXT,8,6,53,12,NOT WS_GROUP
@@ -392,8 +392,8 @@ END
392392
//
393393

394394
VS_VERSION_INFO VERSIONINFO
395-
FILEVERSION 4,4,2101,0
396-
PRODUCTVERSION 4,4,2101,0
395+
FILEVERSION 4,4,2102,0
396+
PRODUCTVERSION 4,4,2102,0
397397
FILEFLAGSMASK 0x3fL
398398
#ifdef _DEBUG
399399
FILEFLAGS 0x1L
@@ -411,13 +411,13 @@ BEGIN
411411
VALUE "Comments", "https://rufus.ie"
412412
VALUE "CompanyName", "Akeo Consulting"
413413
VALUE "FileDescription", "Rufus"
414-
VALUE "FileVersion", "4.4.2101"
414+
VALUE "FileVersion", "4.4.2102"
415415
VALUE "InternalName", "Rufus"
416416
VALUE "LegalCopyright", "� 2011-2024 Pete Batard (GPL v3)"
417417
VALUE "LegalTrademarks", "https://www.gnu.org/licenses/gpl-3.0.html"
418418
VALUE "OriginalFilename", "rufus-4.4.exe"
419419
VALUE "ProductName", "Rufus"
420-
VALUE "ProductVersion", "4.4.2101"
420+
VALUE "ProductVersion", "4.4.2102"
421421
END
422422
END
423423
BLOCK "VarFileInfo"

0 commit comments

Comments
 (0)