Skip to content

Commit

Permalink
v3.10 (build 1647)
Browse files Browse the repository at this point in the history
* Also fix SBR message not being written for bootable images
* Also add an extra partition refresh after deleting partitions to try
  to further force Windows take its stinking paws off our drive.
  • Loading branch information
pbatard committed Apr 22, 2020
1 parent cf52f61 commit 0085c4a
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 17 deletions.
11 changes: 6 additions & 5 deletions ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
o Version 3.10 (2020.04.??)
Improve Ubuntu 20.04 support
o Version 3.10 (2020.04.22)
Improve support for Ubuntu 20.04
Improve detection of FIXED drives with no mounted partitions
Improve extfs formatting
Update UEFI:NTFS file system drivers to v1.5
Fix progress not being updated for German locale
Fix primary GPT being overwritten when adding the protective message MBR
Fix progress not being updated when using the German localization
Fix primary GPT being overwritten when adding the protective MBR message
Fix a regression with lousy security solutions that prevent the creation of an 'autorun.inf'
Fix an assert during FreeDOS drive creation when the Windows system locale is UTF-8
Fix an assert during FreeDOS drive creation when the Windows system locale is set to UTF-8
Fix invalid label errors when using a non-Western locale

o Version 3.9 (2020.02.29)
Expand Down
2 changes: 1 addition & 1 deletion res/appstore/AppxManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
for an interesting struggle, when you also happen to have a comma in one of the fields... -->
<Identity
Name="Rufus"
Version="3.10.1624.0"
Version="3.10.1647.0"
ProcessorArchitecture="@ARCH@"
Publisher='CN=Akeo Consulting, O=Akeo Consulting, STREET=24 Grey Rock, L=Milford, S=Co. Donegal, PostalCode=F92 D667, C=IE' />
<Properties>
Expand Down
14 changes: 8 additions & 6 deletions src/format.c
Original file line number Diff line number Diff line change
Expand Up @@ -920,13 +920,12 @@ static BOOL WriteSBR(HANDLE hPhysicalDrive)
sub_type = BT_GRUB4DOS;
if (img_report.has_grub2)
sub_type = BT_GRUB2;
} else if (partition_type == PARTITION_STYLE_GPT) {
sub_type = BT_NON_BOOTABLE;
} else {
// Needed to prevent protective message to be written for MBR mode
sub_type = BT_MAX;
}

// Use BT_MAX for the protective message
if (partition_type == PARTITION_STYLE_GPT)
sub_type = BT_MAX;

switch (sub_type) {
case BT_GRUB4DOS:
uprintf("Writing Grub4Dos SBR");
Expand All @@ -953,7 +952,7 @@ static BOOL WriteSBR(HANDLE hPhysicalDrive)
}
}
break;
case BT_NON_BOOTABLE:
case BT_MAX:
uprintf("Writing protective message SBR");
size = 4 * KB;
br_size = 17 * KB; // 34 sectors are reserved for protective MBR + primary GPT
Expand Down Expand Up @@ -1790,6 +1789,9 @@ DWORD WINAPI FormatThread(void* param)
FormatStatus = 0;
}

// An extra refresh of the (now empty) partition data here appears to be helpful
GetDrivePartitionData(SelectedDrive.DeviceNumber, fs_name, sizeof(fs_name), TRUE);

// Now get RW access to the physical drive...
hPhysicalDrive = GetPhysicalHandle(DriveIndex, actual_lock_drive, TRUE, !actual_lock_drive);
if (hPhysicalDrive == INVALID_HANDLE_VALUE) {
Expand Down
10 changes: 5 additions & 5 deletions src/rufus.rc
Original file line number Diff line number Diff line change
Expand Up @@ -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.10.1646"
CAPTION "Rufus 3.10.1647"
FONT 9, "Segoe UI Symbol", 400, 0, 0x0
BEGIN
LTEXT "Drive Properties",IDS_DRIVE_PROPERTIES_TXT,8,6,53,12,NOT WS_GROUP
Expand Down Expand Up @@ -395,8 +395,8 @@ END
//

VS_VERSION_INFO VERSIONINFO
FILEVERSION 3,10,1646,0
PRODUCTVERSION 3,10,1646,0
FILEVERSION 3,10,1647,0
PRODUCTVERSION 3,10,1647,0
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
FILEFLAGS 0x1L
Expand All @@ -414,13 +414,13 @@ BEGIN
VALUE "Comments", "https://rufus.ie"
VALUE "CompanyName", "Akeo Consulting"
VALUE "FileDescription", "Rufus"
VALUE "FileVersion", "3.10.1646"
VALUE "FileVersion", "3.10.1647"
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.10.exe"
VALUE "ProductName", "Rufus"
VALUE "ProductVersion", "3.10.1646"
VALUE "ProductVersion", "3.10.1647"
END
END
BLOCK "VarFileInfo"
Expand Down

0 comments on commit 0085c4a

Please sign in to comment.