mirror of
https://github.com/reactos/reactos.git
synced 2025-02-25 01:39:30 +00:00
Change the order in which file systems are recognized, do not mistake FAT32 for Ext2.
svn path=/trunk/; revision=42015
This commit is contained in:
parent
3b39cbc701
commit
6d59a5cfa7
1 changed files with 6 additions and 6 deletions
|
@ -36,12 +36,7 @@ BOOLEAN FsRecognizeVolume(ULONG DriveNumber, ULONG VolumeStartSector, UCHAR* Vol
|
|||
|
||||
DPRINTM(DPRINT_FILESYSTEM, "FsRecognizeVolume() DriveNumber: 0x%x VolumeStartSector: %d\n", DriveNumber, VolumeStartSector);
|
||||
|
||||
if (FsRecIsExt2(DriveNumber, VolumeStartSector))
|
||||
{
|
||||
*VolumeType = PARTITION_EXT2;
|
||||
return TRUE;
|
||||
}
|
||||
else if (FsRecIsFat(DriveNumber, VolumeStartSector))
|
||||
if (FsRecIsFat(DriveNumber, VolumeStartSector))
|
||||
{
|
||||
*VolumeType = PARTITION_FAT32;
|
||||
return TRUE;
|
||||
|
@ -51,6 +46,11 @@ BOOLEAN FsRecognizeVolume(ULONG DriveNumber, ULONG VolumeStartSector, UCHAR* Vol
|
|||
*VolumeType = PARTITION_NTFS;
|
||||
return TRUE;
|
||||
}
|
||||
else if (FsRecIsExt2(DriveNumber, VolumeStartSector))
|
||||
{
|
||||
*VolumeType = PARTITION_EXT2;
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue