https://git.reactos.org/?p=reactos.git;a=commitdiff;h=b893124a20b8024a26d794a4d1867845ca3493e4

commit b893124a20b8024a26d794a4d1867845ca3493e4
Author:     Serge Gautherie <[email protected]>
AuthorDate: Fri May 4 06:03:41 2018 +0200
Commit:     Pierre Schweitzer <[email protected]>
CommitDate: Fri May 4 08:08:45 2018 +0200

    [NTFS] Fix 2 Clang-Cl warnings about CurrentKey->IndexEntry->Flags
    
    "warning: logical not is only applied to the left hand side of this bitwise 
operator [-Wlogical-not-parentheses]"
    
    CORE-14306
---
 drivers/filesystems/ntfs/btree.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/filesystems/ntfs/btree.c b/drivers/filesystems/ntfs/btree.c
index 35a6eb6cd0..a702e25b33 100644
--- a/drivers/filesystems/ntfs/btree.c
+++ b/drivers/filesystems/ntfs/btree.c
@@ -1257,7 +1257,7 @@ UpdateIndexAllocation(PDEVICE_EXTENSION DeviceExt,
             }
 
             // Is the Index Entry large enough to store the VCN?
-            if (!CurrentKey->IndexEntry->Flags & NTFS_INDEX_ENTRY_NODE)
+            if (!BooleanFlagOn(CurrentKey->IndexEntry->Flags, 
NTFS_INDEX_ENTRY_NODE))
             {
                 // Allocate memory for the larger index entry
                 PINDEX_ENTRY_ATTRIBUTE NewEntry = 
ExAllocatePoolWithTag(NonPagedPool,
@@ -1357,7 +1357,7 @@ UpdateIndexNode(PDEVICE_EXTENSION DeviceExt,
             }
             
             // Is the Index Entry large enough to store the VCN?
-            if (!CurrentKey->IndexEntry->Flags & NTFS_INDEX_ENTRY_NODE)
+            if (!BooleanFlagOn(CurrentKey->IndexEntry->Flags, 
NTFS_INDEX_ENTRY_NODE))
             {
                 // Allocate memory for the larger index entry
                 PINDEX_ENTRY_ATTRIBUTE NewEntry = 
ExAllocatePoolWithTag(NonPagedPool,

Reply via email to