From 9727fd43429e4809db442c788fe31ffcea01ee49 Mon Sep 17 00:00:00 2001 From: Pete Batard Date: Wed, 16 Nov 2022 16:55:41 +0000 Subject: [PATCH] [core] improve/fix file system selection according to current ISO * Closes #2074. * Also harmonize whitespaces. --- src/rufus.c | 41 ++++++++++++++++------------------------- src/rufus.rc | 10 +++++----- 2 files changed, 21 insertions(+), 30 deletions(-) diff --git a/src/rufus.c b/src/rufus.c index c3c1f170..ac9e994b 100755 --- a/src/rufus.c +++ b/src/rufus.c @@ -483,7 +483,7 @@ static BOOL SetFileSystemAndClusterSize(char* fs_name) // FAT 16 if (SelectedDrive.DiskSize < 4*GB) { SelectedDrive.ClusterSize[FS_FAT16].Allowed = 0x00001E00; - for (i=32; i<=4096; i<<=1) { // 8 MB -> 4 GB + for (i = 32; i <= 4096; i <<= 1) { // 8 MB -> 4 GB if (SelectedDrive.DiskSize < i*MB) { SelectedDrive.ClusterSize[FS_FAT16].Default = 16*(ULONG)i; break; @@ -613,7 +613,7 @@ static BOOL SetFileSystemAndClusterSize(char* fs_name) SelectedDrive.FSType = selected_fs; } - for (i = 0; i