https://git.reactos.org/?p=reactos.git;a=commitdiff;h=2dc4938549ef2315a2f30…
commit 2dc4938549ef2315a2f301eb452e9b9ad6f14835
Author: Trevor Thompson <tmt256(a)email.vccs.edu>
AuthorDate: Wed Jun 28 18:22:42 2017 +0000
[NTFS] - Fix a couple of issues spotted by Thomas: Maintain alphabetical ordering of
CMakeLists.txt, fix casts to BOOLEAN with BooleanFlagOn macro.
svn path=/branches/GSoC_2016/NTFS/; revision=75224
---
drivers/filesystems/ntfs/CMakeLists.txt | 2 +-
drivers/filesystems/ntfs/create.c | 2 +-
drivers/filesystems/ntfs/dirctl.c | 2 +-
drivers/filesystems/ntfs/finfo.c | 2 +-
drivers/filesystems/ntfs/rw.c | 2 +-
5 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/drivers/filesystems/ntfs/CMakeLists.txt
b/drivers/filesystems/ntfs/CMakeLists.txt
index b9c72a72e7..0b1af78947 100644
--- a/drivers/filesystems/ntfs/CMakeLists.txt
+++ b/drivers/filesystems/ntfs/CMakeLists.txt
@@ -1,8 +1,8 @@
list(APPEND SOURCE
attrib.c
- btree.c
blockdev.c
+ btree.c
cleanup.c
close.c
create.c
diff --git a/drivers/filesystems/ntfs/create.c b/drivers/filesystems/ntfs/create.c
index 586da89b36..4da9470a6b 100644
--- a/drivers/filesystems/ntfs/create.c
+++ b/drivers/filesystems/ntfs/create.c
@@ -419,7 +419,7 @@ NtfsCreateFile(PDEVICE_OBJECT DeviceObject,
Status = NtfsOpenFile(DeviceExt,
FileObject,
((RequestedOptions & FILE_OPEN_BY_FILE_ID) ?
FullPath.Buffer : FileObject->FileName.Buffer),
- (Stack->Flags & SL_CASE_SENSITIVE),
+ BooleanFlagOn(Stack->Flags, SL_CASE_SENSITIVE),
&Fcb);
if (RequestedOptions & FILE_OPEN_BY_FILE_ID)
diff --git a/drivers/filesystems/ntfs/dirctl.c b/drivers/filesystems/ntfs/dirctl.c
index ba7231dc80..c3bcdb43cb 100644
--- a/drivers/filesystems/ntfs/dirctl.c
+++ b/drivers/filesystems/ntfs/dirctl.c
@@ -621,7 +621,7 @@ NtfsQueryDirectory(PNTFS_IRP_CONTEXT IrpContext)
&FileRecord,
&MFTRecord,
Fcb->MFTIndex,
- (Stack->Flags & SL_CASE_SENSITIVE));
+ BooleanFlagOn(Stack->Flags, SL_CASE_SENSITIVE));
if (NT_SUCCESS(Status))
{
diff --git a/drivers/filesystems/ntfs/finfo.c b/drivers/filesystems/ntfs/finfo.c
index 1cb7dbc0fe..ed1515c8d6 100644
--- a/drivers/filesystems/ntfs/finfo.c
+++ b/drivers/filesystems/ntfs/finfo.c
@@ -635,7 +635,7 @@ NtfsSetInformation(PNTFS_IRP_CONTEXT IrpContext)
FileObject,
DeviceExt,
Irp->Flags,
- (Stack->Flags & SL_CASE_SENSITIVE),
+ BooleanFlagOn(Stack->Flags, SL_CASE_SENSITIVE),
&EndOfFileInfo->EndOfFile);
break;
diff --git a/drivers/filesystems/ntfs/rw.c b/drivers/filesystems/ntfs/rw.c
index 215269a25c..7ef808f8c2 100644
--- a/drivers/filesystems/ntfs/rw.c
+++ b/drivers/filesystems/ntfs/rw.c
@@ -686,7 +686,7 @@ NtfsWrite(PNTFS_IRP_CONTEXT IrpContext)
Length,
ByteOffset.LowPart,
Irp->Flags,
- (IrpContext->Stack->Flags & SL_CASE_SENSITIVE),
+ BooleanFlagOn(IrpContext->Stack->Flags,
SL_CASE_SENSITIVE),
&ReturnedWriteLength);
IrpContext->Irp->IoStatus.Status = Status;