From c9ec1555ad2b563656048e5684acf18622763a71 Mon Sep 17 00:00:00 2001 From: Pierre Schweitzer Date: Wed, 29 Oct 2014 22:51:16 +0000 Subject: [PATCH] [FASTFAT] Don't attempt to mount any partition just because we have a valid partition table... Restrict this to them being marked as FAT or compatible. svn path=/trunk/; revision=65115 --- reactos/drivers/filesystems/fastfat/fsctl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/reactos/drivers/filesystems/fastfat/fsctl.c b/reactos/drivers/filesystems/fastfat/fsctl.c index 938467b5b3a..e0a1608600c 100644 --- a/reactos/drivers/filesystems/fastfat/fsctl.c +++ b/reactos/drivers/filesystems/fastfat/fsctl.c @@ -89,7 +89,6 @@ VfatHasFileSystem( return Status; } - PartitionInfoIsValid = TRUE; DPRINT("Partition Information:\n"); DPRINT("StartingOffset %I64x\n", PartitionInfo.StartingOffset.QuadPart / 512); DPRINT("PartitionLength %I64x\n", PartitionInfo.PartitionLength.QuadPart / 512); @@ -108,6 +107,7 @@ VfatHasFileSystem( PartitionInfo.PartitionType == PARTITION_FAT32_XINT13 || PartitionInfo.PartitionType == PARTITION_XINT13) { + PartitionInfoIsValid = TRUE; *RecognizedFS = TRUE; } } @@ -117,6 +117,7 @@ VfatHasFileSystem( PartitionInfo.PartitionLength.QuadPart > 0) { /* This is possible a removable media formated as super floppy */ + PartitionInfoIsValid = TRUE; *RecognizedFS = TRUE; } }