Author: dgorbachev
Date: Fri Jul 17 21:14:08 2009
New Revision: 42015
URL:
http://svn.reactos.org/svn/reactos?rev=42015&view=rev
Log:
Change the order in which file systems are recognized, do not mistake FAT32 for Ext2.
Modified:
trunk/reactos/boot/freeldr/freeldr/fs/fsrec.c
Modified: trunk/reactos/boot/freeldr/freeldr/fs/fsrec.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/boot/freeldr/freeldr/fs/fs…
==============================================================================
--- trunk/reactos/boot/freeldr/freeldr/fs/fsrec.c [iso-8859-1] (original)
+++ trunk/reactos/boot/freeldr/freeldr/fs/fsrec.c [iso-8859-1] Fri Jul 17 21:14:08 2009
@@ -36,12 +36,7 @@
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;
@@ -49,6 +44,11 @@
else if (FsRecIsNtfs(DriveNumber, VolumeStartSector))
{
*VolumeType = PARTITION_NTFS;
+ return TRUE;
+ }
+ else if (FsRecIsExt2(DriveNumber, VolumeStartSector))
+ {
+ *VolumeType = PARTITION_EXT2;
return TRUE;
}