mirror of
https://github.com/winfsp/winfsp.git
synced 2025-06-07 20:42:09 -05:00
ensure that all source files use UNIX newlines
This commit is contained in:
parent
7cb56bb132
commit
2ba46fdb71
@ -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
|
||||
|
||||
|
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user