diff --git a/src/drive.c b/src/drive.c index b92559cc..73546f79 100644 --- a/src/drive.c +++ b/src/drive.c @@ -39,7 +39,7 @@ #include "localization.h" #if !defined(PARTITION_BASIC_DATA_GUID) -const GUID PARTITION_BASIC_DATA_GUID = +const GUID PARTITION_BASIC_DATA_GUID = { 0xebd0a0a2L, 0xb9e5, 0x4433, {0x87, 0xc0, 0x68, 0xb6, 0xb7, 0x26, 0x99, 0xc7} }; #endif #if !defined(PARTITION_MSFT_RESERVED_GUID) @@ -63,7 +63,7 @@ size_t uefi_ntfs_size = 0; * See https://github.com/pbatard/rufus/issues/386. * * Reverse engineering diskpart and mountvol indicates that the former uses the IVdsService - * ClearFlags()/SetFlags() to set VDS_SVF_AUTO_MOUNT_OFF whereas mountvol on uses + * ClearFlags()/SetFlags() to set VDS_SVF_AUTO_MOUNT_OFF whereas mountvol on uses * IOCTL_MOUNTMGR_SET_AUTO_MOUNT on "\\\\.\\MountPointManager". * As the latter is MUCH simpler this is what we'll use too */ @@ -156,7 +156,7 @@ out: return hDrive; } -/* +/* * Return the path to access the physical drive, or NULL on error. * The string is allocated and must be freed (to ensure concurrent access) */ @@ -172,7 +172,7 @@ out: return (success)?safe_strdup(physical_name):NULL; } -/* +/* * Return a handle to the physical drive identified by DriveIndex */ HANDLE GetPhysicalHandle(DWORD DriveIndex, BOOL bWriteAccess, BOOL bLockDrive) @@ -295,7 +295,7 @@ BOOL WaitForLogical(DWORD DriveIndex) return FALSE; } -/* +/* * Obtain a handle to the first logical volume on the disk identified by DriveIndex * Returns INVALID_HANDLE_VALUE on error or NULL if no logical path exists (typical * of unpartitioned drives) @@ -707,7 +707,7 @@ BOOL GetDrivePartitionData(DWORD DriveIndex, char* FileSystemName, DWORD FileSys suprintf("Cylinders: %" PRIi64 ", TracksPerCylinder: %d, SectorsPerTrack: %d\n", DiskGeometry->Geometry.Cylinders, DiskGeometry->Geometry.TracksPerCylinder, DiskGeometry->Geometry.SectorsPerTrack); - r = DeviceIoControl(hPhysical, IOCTL_DISK_GET_DRIVE_LAYOUT_EX, + r = DeviceIoControl(hPhysical, IOCTL_DISK_GET_DRIVE_LAYOUT_EX, NULL, 0, layout, sizeof(layout), &size, NULL ); if (!r || size <= 0) { suprintf("Could not get layout for drive 0x%02x: %s\n", DriveIndex, WindowsErrorString()); @@ -941,7 +941,7 @@ char* AltMountVolume(const char* drive_name, uint8_t part_nr) uprintf("Could not find partition mapping for %s", target[0]); goto out; } - + while ((--i > 0) && (isdigit(p[i]))); p[++i] = '0' + part_nr; p[++i] = 0; diff --git a/src/format.c b/src/format.c index d2218ee7..83753539 100644 --- a/src/format.c +++ b/src/format.c @@ -1647,7 +1647,9 @@ DWORD WINAPI FormatThread(void* param) } RefreshDriveLayout(hPhysicalDrive); goto out; - } else if (IsChecked(IDC_BADBLOCKS)) { + } + + if (IsChecked(IDC_BADBLOCKS)) { do { // create a log file for bad blocks report. Since %USERPROFILE% may // have localized characters, we use the UTF-8 API. diff --git a/src/rufus.c b/src/rufus.c index 06e10680..3d0a5ec0 100644 --- a/src/rufus.c +++ b/src/rufus.c @@ -3065,7 +3065,7 @@ relaunch: // Alt-E => Enhanced installation mode (allow dual UEFI/BIOS mode and FAT32 for Windows) if ((msg.message == WM_SYSKEYDOWN) && (msg.wParam == 'E')) { allow_dual_uefi_bios = !allow_dual_uefi_bios; - WriteSettingBool(SETTING_ENABLE_WIN_DUAL_EFI_BIOS, !allow_dual_uefi_bios); + WriteSettingBool(SETTING_ENABLE_WIN_DUAL_EFI_BIOS, allow_dual_uefi_bios); PrintStatus2000(lmprintf(MSG_266), allow_dual_uefi_bios); SetMBRForUEFI(TRUE); continue; diff --git a/src/rufus.rc b/src/rufus.rc index 0a522fb5..d115007a 100644 --- a/src/rufus.rc +++ b/src/rufus.rc @@ -32,7 +32,7 @@ LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL IDD_DIALOG DIALOGEX 12, 12, 242, 376 STYLE DS_SETFONT | DS_MODALFRAME | DS_CENTER | WS_MINIMIZEBOX | WS_POPUP | WS_CAPTION | WS_SYSMENU -CAPTION "Rufus 2.6.803" +CAPTION "Rufus 2.6.804" FONT 8, "Segoe UI Symbol", 400, 0, 0x0 BEGIN LTEXT "Device",IDS_DEVICE_TXT,9,6,200,8 @@ -319,8 +319,8 @@ END // VS_VERSION_INFO VERSIONINFO - FILEVERSION 2,6,803,0 - PRODUCTVERSION 2,6,803,0 + FILEVERSION 2,6,804,0 + PRODUCTVERSION 2,6,804,0 FILEFLAGSMASK 0x3fL #ifdef _DEBUG FILEFLAGS 0x1L @@ -337,13 +337,13 @@ BEGIN BEGIN VALUE "CompanyName", "Akeo Consulting (http://akeo.ie)" VALUE "FileDescription", "Rufus" - VALUE "FileVersion", "2.6.803" + VALUE "FileVersion", "2.6.804" VALUE "InternalName", "Rufus" VALUE "LegalCopyright", "© 2011-2015 Pete Batard (GPL v3)" VALUE "LegalTrademarks", "http://www.gnu.org/copyleft/gpl.html" VALUE "OriginalFilename", "rufus.exe" VALUE "ProductName", "Rufus" - VALUE "ProductVersion", "2.6.803" + VALUE "ProductVersion", "2.6.804" END END BLOCK "VarFileInfo"