Modules/FAT - Slight improvement to detection code
authorJohn Hodge (sonata) <[email protected]>
Sun, 18 Nov 2012 05:39:54 +0000 (13:39 +0800)
committerJohn Hodge (sonata) <[email protected]>
Sun, 18 Nov 2012 05:39:54 +0000 (13:39 +0800)
KernelLand/Modules/Filesystems/FAT/fat.c

index c930497..be0a51c 100644 (file)
@@ -98,7 +98,11 @@ int FAT_Detect(int FD)
 \r
        if(bs.bps == 0 || bs.spc == 0)\r
                return 0;\r
-       \r
+\r
+       Log_Debug("FAT", "_Detect: Media type = %02x", bs.mediaDesc);\r
+       if( bs.mediaDesc < 0xF0 )\r
+               return 0;\r
+\r
        return 1;\r
 }\r
 /**\r

UCC git Repository :: git.ucc.asn.au