From 2ba46fdb714b4354309d58d0c86bbbbc1dc3b8a2 Mon Sep 17 00:00:00 2001 From: Bill Zissimopoulos Date: Sun, 25 Sep 2016 21:50:11 -0700 Subject: [PATCH] ensure that all source files use UNIX newlines --- src/dll/eventlog/eventlog.h | 126 ++++++++++++++++++------------------ src/sys/create.c | 34 +++++----- 2 files changed, 80 insertions(+), 80 deletions(-) diff --git a/src/dll/eventlog/eventlog.h b/src/dll/eventlog/eventlog.h index 2e44422d..43433bee 100644 --- a/src/dll/eventlog/eventlog.h +++ b/src/dll/eventlog/eventlog.h @@ -1,63 +1,63 @@ -// -// Values are 32 bit values laid out as follows: -// -// 3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1 -// 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 -// +---+-+-+-----------------------+-------------------------------+ -// |Sev|C|R| Facility | Code | -// +---+-+-+-----------------------+-------------------------------+ -// -// where -// -// Sev - is the severity code -// -// 00 - Success -// 01 - Informational -// 10 - Warning -// 11 - Error -// -// C - is the Customer code flag -// -// R - is a reserved bit -// -// Facility - is the facility code -// -// Code - is the facility's status code -// -// -// Define the facility codes -// - - -// -// Define the severity codes -// - - -// -// MessageId: FSP_EVENTLOG_INFORMATION -// -// MessageText: -// -// %1: %2 -// -#define FSP_EVENTLOG_INFORMATION 0x60000001L - -// -// MessageId: FSP_EVENTLOG_WARNING -// -// MessageText: -// -// %1: %2 -// -#define FSP_EVENTLOG_WARNING 0xA0000001L - -// -// MessageId: FSP_EVENTLOG_ERROR -// -// MessageText: -// -// %1: %2 -// -#define FSP_EVENTLOG_ERROR 0xE0000001L - +// +// Values are 32 bit values laid out as follows: +// +// 3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1 +// 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 +// +---+-+-+-----------------------+-------------------------------+ +// |Sev|C|R| Facility | Code | +// +---+-+-+-----------------------+-------------------------------+ +// +// where +// +// Sev - is the severity code +// +// 00 - Success +// 01 - Informational +// 10 - Warning +// 11 - Error +// +// C - is the Customer code flag +// +// R - is a reserved bit +// +// Facility - is the facility code +// +// Code - is the facility's status code +// +// +// Define the facility codes +// + + +// +// Define the severity codes +// + + +// +// MessageId: FSP_EVENTLOG_INFORMATION +// +// MessageText: +// +// %1: %2 +// +#define FSP_EVENTLOG_INFORMATION 0x60000001L + +// +// MessageId: FSP_EVENTLOG_WARNING +// +// MessageText: +// +// %1: %2 +// +#define FSP_EVENTLOG_WARNING 0xA0000001L + +// +// MessageId: FSP_EVENTLOG_ERROR +// +// MessageText: +// +// %1: %2 +// +#define FSP_EVENTLOG_ERROR 0xE0000001L + diff --git a/src/sys/create.c b/src/sys/create.c index 1dd18808..7840ca6c 100644 --- a/src/sys/create.c +++ b/src/sys/create.c @@ -320,25 +320,25 @@ static NTSTATUS FspFsvolCreateNoLock( FileNode->FileName.Length -= sizeof(WCHAR); } - /* not all operations allowed on the root directory */ - if (sizeof(WCHAR) == FileNode->FileName.Length && - (FILE_CREATE == CreateDisposition || - FILE_OVERWRITE == CreateDisposition || - FILE_OVERWRITE_IF == CreateDisposition || - FILE_SUPERSEDE == CreateDisposition || - BooleanFlagOn(Flags, SL_OPEN_TARGET_DIRECTORY))) - { + /* not all operations allowed on the root directory */ + if (sizeof(WCHAR) == FileNode->FileName.Length && + (FILE_CREATE == CreateDisposition || + FILE_OVERWRITE == CreateDisposition || + FILE_OVERWRITE_IF == CreateDisposition || + FILE_SUPERSEDE == CreateDisposition || + BooleanFlagOn(Flags, SL_OPEN_TARGET_DIRECTORY))) + { FspFileNodeDereference(FileNode); - return STATUS_ACCESS_DENIED; - } - - /* cannot FILE_DELETE_ON_CLOSE on the root directory */ - if (sizeof(WCHAR) == FileNode->FileName.Length && - FlagOn(CreateOptions, FILE_DELETE_ON_CLOSE)) - { + return STATUS_ACCESS_DENIED; + } + + /* cannot FILE_DELETE_ON_CLOSE on the root directory */ + if (sizeof(WCHAR) == FileNode->FileName.Length && + FlagOn(CreateOptions, FILE_DELETE_ON_CLOSE)) + { FspFileNodeDereference(FileNode); - return STATUS_CANNOT_DELETE; - } + return STATUS_CANNOT_DELETE; + } Result = FspFileDescCreate(&FileDesc); if (!NT_SUCCESS(Result))