From cfc68a060395bd6ca06d744172c90834411926e8 Mon Sep 17 00:00:00 2001 From: Pdawg11239 <83825746+Pdawg-bytes@users.noreply.github.com> Date: Mon, 17 Mar 2025 03:12:23 -0400 Subject: [PATCH] Update names --- BadBuilder.Formatter/DiskFormatter.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/BadBuilder.Formatter/DiskFormatter.cs b/BadBuilder.Formatter/DiskFormatter.cs index b6638e8..1cf5965 100644 --- a/BadBuilder.Formatter/DiskFormatter.cs +++ b/BadBuilder.Formatter/DiskFormatter.cs @@ -175,10 +175,10 @@ namespace BadBuilder.Formatter return sector; } - private static unsafe string FormatVolumeData(SafeFileHandle driveHandle, DISK_GEOMETRY geometry, FAT32BootSector bootSector, FAT32FsInfoSector fsInfo, uint[] firstFATSector, bool isGPT, PARTITION_INFORMATION partitionInfo) + private static unsafe string FormatVolumeData(SafeFileHandle driveHandle, DISK_GEOMETRY diskGeometry, FAT32BootSector bootSector, FAT32FsInfoSector fsInfo, uint[] firstFATSector, bool isGPT, PARTITION_INFORMATION partitionInfo) { - uint bytesPerSector = geometry.BytesPerSector; - uint totalSectors = (uint)(partitionInfo.PartitionLength / geometry.BytesPerSector); + uint bytesPerSector = diskGeometry.BytesPerSector; + uint totalSectors = (uint)(partitionInfo.PartitionLength / diskGeometry.BytesPerSector); uint userAreaSize = totalSectors - bootSector.ReservedSectorCount - (bootSector.NumberOfFATs * bootSector.SectorsPerFAT); uint systemAreaSize = bootSector.ReservedSectorCount + (bootSector.NumberOfFATs * bootSector.SectorsPerFAT) + bootSector.SectorsPerCluster; uint clusterCount = userAreaSize / bootSector.SectorsPerCluster;