[SDK] Properly define IsFTPartition so that it doesn't match Unix partition type

CORE-16499
This commit is contained in:
Pierre Schweitzer 2019-11-11 21:18:13 +01:00
parent 887200703c
commit 0a0e6a9f07
No known key found for this signature in database
GPG key ID: 7545556C3D585B0B

View file

@ -239,8 +239,13 @@ extern "C" {
#endif
#define IsFTPartition( PartitionType ) \
(((PartitionType) & PARTITION_NTFT) && \
IsRecognizedPartition(PartitionType))
(((PartitionType) & PARTITION_NTFT) && (((PartitionType) & ~0xC0) == PARTITION_FAT_12)) || \
(((PartitionType) & PARTITION_NTFT) && (((PartitionType) & ~0xC0) == PARTITION_HUGE)) || \
(((PartitionType) & PARTITION_NTFT) && (((PartitionType) & ~0xC0) == PARTITION_IFS)) || \
(((PartitionType) & PARTITION_NTFT) && (((PartitionType) & ~0xC0) == PARTITION_FAT32)) || \
(((PartitionType) & PARTITION_NTFT) && (((PartitionType) & ~0xC0) == PARTITION_FAT32_XINT13)) || \
(((PartitionType) & PARTITION_NTFT) && (((PartitionType) & ~0xC0) == PARTITION_XINT13))
#define IsContainerPartition(PartitionType) \
(((PartitionType) == PARTITION_EXTENDED) || \