[FASTFAT]
authorPierre Schweitzer <pierre@reactos.org>
Wed, 29 Oct 2014 22:51:16 +0000 (22:51 +0000)
committerPierre Schweitzer <pierre@reactos.org>
Wed, 29 Oct 2014 22:51:16 +0000 (22:51 +0000)
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

index 938467b..e0a1608 100644 (file)
@@ -89,7 +89,6 @@ VfatHasFileSystem(
             return Status;
         }
 
             return Status;
         }
 
-        PartitionInfoIsValid = TRUE;
         DPRINT("Partition Information:\n");
         DPRINT("StartingOffset      %I64x\n", PartitionInfo.StartingOffset.QuadPart  / 512);
         DPRINT("PartitionLength     %I64x\n", PartitionInfo.PartitionLength.QuadPart / 512);
         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)
             {
                 PartitionInfo.PartitionType == PARTITION_FAT32_XINT13 ||
                 PartitionInfo.PartitionType == PARTITION_XINT13)
             {
+                 PartitionInfoIsValid = TRUE;
                 *RecognizedFS = TRUE;
             }
         }
                 *RecognizedFS = TRUE;
             }
         }
@@ -117,6 +117,7 @@ VfatHasFileSystem(
                  PartitionInfo.PartitionLength.QuadPart > 0)
         {
             /* This is possible a removable media formated as super floppy */
                  PartitionInfo.PartitionLength.QuadPart > 0)
         {
             /* This is possible a removable media formated as super floppy */
+            PartitionInfoIsValid = TRUE;
             *RecognizedFS = TRUE;
         }
     }
             *RecognizedFS = TRUE;
         }
     }