Author: tfaber
Date: Mon Jan 30 13:33:46 2017
New Revision: 73634
URL:
http://svn.reactos.org/svn/reactos?rev=73634&view=rev
Log:
[PSDK]
- Remove incorrect bit masking from IsRecognizedPartition & IsContainerPartition. CID
1341188.
Modified:
trunk/reactos/sdk/include/psdk/winioctl.h
Modified: trunk/reactos/sdk/include/psdk/winioctl.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/sdk/include/psdk/winioctl.…
==============================================================================
--- trunk/reactos/sdk/include/psdk/winioctl.h [iso-8859-1] (original)
+++ trunk/reactos/sdk/include/psdk/winioctl.h [iso-8859-1] Mon Jan 30 13:33:46 2017
@@ -592,18 +592,18 @@
((t&PARTITION_NTFT)&&((t&~VALID_NTFT)==PARTITION_FAT32))||\
((t&PARTITION_NTFT)&&((t&~VALID_NTFT)==PARTITION_FAT32_XINT13))||\
((t&PARTITION_NTFT)&&((t&~VALID_NTFT)==PARTITION_XINT13))||\
- ((t&~PARTITION_NTFT)==PARTITION_FAT_12)||\
- ((t&~PARTITION_NTFT)==PARTITION_FAT_16)||\
- ((t&~PARTITION_NTFT)==PARTITION_IFS)||\
- ((t&~PARTITION_NTFT)==PARTITION_HUGE)||\
- ((t&~PARTITION_NTFT)==PARTITION_FAT32)||\
- ((t&~PARTITION_NTFT)==PARTITION_FAT32_XINT13)||\
- ((t&~PARTITION_NTFT)==PARTITION_XINT13)||\
- ((t&~PARTITION_NTFT)==PARTITION_LINUX)||\
- ((t&~PARTITION_NTFT)==PARTITION_OLD_LINUX)||\
- ((t&~PARTITION_NTFT)==PARTITION_FREEBSD)||\
- ((t&~PARTITION_NTFT)==PARTITION_OPENBSD)||\
- ((t&~PARTITION_NTFT)==PARTITION_NETBSD))
+ ((t)==PARTITION_FAT_12)||\
+ ((t)==PARTITION_FAT_16)||\
+ ((t)==PARTITION_IFS)||\
+ ((t)==PARTITION_HUGE)||\
+ ((t)==PARTITION_FAT32)||\
+ ((t)==PARTITION_FAT32_XINT13)||\
+ ((t)==PARTITION_XINT13)||\
+ ((t)==PARTITION_LINUX)||\
+ ((t)==PARTITION_OLD_LINUX)||\
+ ((t)==PARTITION_FREEBSD)||\
+ ((t)==PARTITION_OPENBSD)||\
+ ((t)==PARTITION_NETBSD))
#else
#define IsRecognizedPartition(t)\
(((t&PARTITION_NTFT)&&((t&~VALID_NTFT)==PARTITION_FAT_12))||\
@@ -613,19 +613,19 @@
((t&PARTITION_NTFT)&&((t&~VALID_NTFT)==PARTITION_FAT32))||\
((t&PARTITION_NTFT)&&((t&~VALID_NTFT)==PARTITION_FAT32_XINT13))||\
((t&PARTITION_NTFT)&&((t&~VALID_NTFT)==PARTITION_XINT13))||\
- ((t&~PARTITION_NTFT)==PARTITION_FAT_12)||\
- ((t&~PARTITION_NTFT)==PARTITION_FAT_16)||\
- ((t&~PARTITION_NTFT)==PARTITION_IFS)||\
- ((t&~PARTITION_NTFT)==PARTITION_HUGE)||\
- ((t&~PARTITION_NTFT)==PARTITION_FAT32)||\
- ((t&~PARTITION_NTFT)==PARTITION_FAT32_XINT13)||\
- ((t&~PARTITION_NTFT)==PARTITION_XINT13))
+ ((t)==PARTITION_FAT_12)||\
+ ((t)==PARTITION_FAT_16)||\
+ ((t)==PARTITION_IFS)||\
+ ((t)==PARTITION_HUGE)||\
+ ((t)==PARTITION_FAT32)||\
+ ((t)==PARTITION_FAT32_XINT13)||\
+ ((t)==PARTITION_XINT13))
#endif
#define IsContainerPartition(t)\
(((t&PARTITION_NTFT)&&((t&~VALID_NTFT)==PARTITION_EXTENDED))||\
((t&PARTITION_NTFT)&&((t&~VALID_NTFT)==PARTITION_XINT13_EXTENDED))||\
- ((t&~PARTITION_NTFT)==PARTITION_EXTENDED)||\
- ((t&~PARTITION_NTFT)==PARTITION_XINT13_EXTENDED))
+ ((t)==PARTITION_EXTENDED)||\
+ ((t)==PARTITION_XINT13_EXTENDED))
#ifdef _MSC_VER
#pragma warning(pop)