From: John Hodge (sonata) Date: Sun, 18 Nov 2012 05:39:54 +0000 (+0800) Subject: Modules/FAT - Slight improvement to detection code X-Git-Tag: rel0.15~654 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=e2eabccf7e2b996ca9294946607abefc11b2fefe;p=tpg%2Facess2.git Modules/FAT - Slight improvement to detection code --- diff --git a/KernelLand/Modules/Filesystems/FAT/fat.c b/KernelLand/Modules/Filesystems/FAT/fat.c index c9304976..be0a51c7 100644 --- a/KernelLand/Modules/Filesystems/FAT/fat.c +++ b/KernelLand/Modules/Filesystems/FAT/fat.c @@ -98,7 +98,11 @@ int FAT_Detect(int FD) if(bs.bps == 0 || bs.spc == 0) return 0; - + + Log_Debug("FAT", "_Detect: Media type = %02x", bs.mediaDesc); + if( bs.mediaDesc < 0xF0 ) + return 0; + return 1; } /**