From 2dc4938549ef2315a2f301eb452e9b9ad6f14835 Mon Sep 17 00:00:00 2001 From: Trevor Thompson Date: Wed, 28 Jun 2017 18:22:42 +0000 Subject: [PATCH] [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 b9c72a72e7d..0b1af78947f 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 586da89b36a..4da9470a6b4 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 ba7231dc807..c3bcdb43cb7 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 1cb7dbc0fe9..ed1515c8d6b 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 215269a25c2..7ef808f8c2b 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;