mirror of
https://github.com/reactos/reactos.git
synced 2026-06-02 17:31:23 +08:00
[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
This commit is contained in:
committed by
Pierre Schweitzer
parent
b8a3f0eeee
commit
b893124a20
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user