mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 18:05:46 +00:00
Fixed bug in partition table code where it incorrectly calculated the partition start sector
svn path=/trunk/; revision=2624
This commit is contained in:
parent
40910fe910
commit
67d2ffb153
2 changed files with 3 additions and 1 deletions
|
@ -47,6 +47,8 @@ BOOL FatOpenVolume(ULONG DriveNumber, ULONG VolumeStartSector)
|
|||
ULONG PhysicalHead;
|
||||
ULONG PhysicalSector;
|
||||
|
||||
DbgPrint((DPRINT_FILESYSTEM, "FatOpenVolume() DriveNumber = 0x%x VolumeStartSector = %d\n", DriveNumber, VolumeStartSector));
|
||||
|
||||
// Store the drive number
|
||||
FatDriveNumber = DriveNumber;
|
||||
|
||||
|
|
|
@ -161,7 +161,7 @@ BOOL OpenDiskDrive(ULONG DriveNumber, ULONG PartitionNumber)
|
|||
case PARTITION_FAT32:
|
||||
case PARTITION_FAT32_XINT13:
|
||||
FileSystemType = FS_FAT;
|
||||
return FatOpenVolume(DriveNumber, PartitionTableEntry.StartSector);
|
||||
return FatOpenVolume(DriveNumber, PartitionTableEntry.SectorCountBeforePartition);
|
||||
default:
|
||||
FileSystemType = 0;
|
||||
FileSystemError("Unsupported file system.");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue