summaryrefslogtreecommitdiff
path: root/include/fat.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/fat.h')
-rw-r--r--include/fat.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/fat.h b/include/fat.h
index 92638d535e4..f993ccab1c2 100644
--- a/include/fat.h
+++ b/include/fat.h
@@ -111,7 +111,8 @@
#define START(dent) (FAT2CPU16((dent)->start) \
+ (mydata->fatsize != 32 ? 0 : \
(FAT2CPU16((dent)->starthi) << 16)))
-
+#define CHECK_CLUST(x, fatsize) ((x) <= 1 || \
+ (x) >= ((fatsize) != 32 ? 0xfff0 : 0xffffff0))
typedef struct boot_sector {
__u8 ignored[3]; /* Bootstrap code */