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))