mirror of
https://github.com/pbatard/rufus.git
synced 2025-05-17 08:34:27 -04:00
[core] clean up the RUFUS_DRIVE_INFO struct
* Remove the duplication of DISK_GEOMETRY to keep only the variables we actually use * Also set rufus-next to 2.10
This commit is contained in:
parent
258a4f7ca0
commit
81673ade26
8 changed files with 75 additions and 72 deletions
|
@ -113,10 +113,10 @@ BOOL InstallSyslinux(DWORD drive_index, char drive_letter, int fs_type)
|
|||
|
||||
// 4K sector size workaround
|
||||
SECTOR_SHIFT = 0;
|
||||
SECTOR_SIZE = SelectedDrive.Geometry.BytesPerSector;
|
||||
SECTOR_SIZE = SelectedDrive.SectorSize;
|
||||
while (SECTOR_SIZE>>=1)
|
||||
SECTOR_SHIFT++;
|
||||
SECTOR_SIZE = SelectedDrive.Geometry.BytesPerSector;
|
||||
SECTOR_SIZE = SelectedDrive.SectorSize;
|
||||
LIBFAT_SECTOR_SHIFT = SECTOR_SHIFT;
|
||||
LIBFAT_SECTOR_SIZE = SECTOR_SIZE;
|
||||
LIBFAT_SECTOR_MASK = SECTOR_SIZE - 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue