mirror of
https://github.com/winfsp/winfsp.git
synced 2025-07-25 20:13:21 -05:00
ensure that all source files use UNIX newlines
This commit is contained in:
@@ -1,63 +1,63 @@
|
|||||||
//
|
//
|
||||||
// Values are 32 bit values laid out as follows:
|
// 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
|
// 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
|
// 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 |
|
// |Sev|C|R| Facility | Code |
|
||||||
// +---+-+-+-----------------------+-------------------------------+
|
// +---+-+-+-----------------------+-------------------------------+
|
||||||
//
|
//
|
||||||
// where
|
// where
|
||||||
//
|
//
|
||||||
// Sev - is the severity code
|
// Sev - is the severity code
|
||||||
//
|
//
|
||||||
// 00 - Success
|
// 00 - Success
|
||||||
// 01 - Informational
|
// 01 - Informational
|
||||||
// 10 - Warning
|
// 10 - Warning
|
||||||
// 11 - Error
|
// 11 - Error
|
||||||
//
|
//
|
||||||
// C - is the Customer code flag
|
// C - is the Customer code flag
|
||||||
//
|
//
|
||||||
// R - is a reserved bit
|
// R - is a reserved bit
|
||||||
//
|
//
|
||||||
// Facility - is the facility code
|
// Facility - is the facility code
|
||||||
//
|
//
|
||||||
// Code - is the facility's status code
|
// Code - is the facility's status code
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
// Define the facility codes
|
// Define the facility codes
|
||||||
//
|
//
|
||||||
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Define the severity codes
|
// Define the severity codes
|
||||||
//
|
//
|
||||||
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// MessageId: FSP_EVENTLOG_INFORMATION
|
// MessageId: FSP_EVENTLOG_INFORMATION
|
||||||
//
|
//
|
||||||
// MessageText:
|
// MessageText:
|
||||||
//
|
//
|
||||||
// %1: %2
|
// %1: %2
|
||||||
//
|
//
|
||||||
#define FSP_EVENTLOG_INFORMATION 0x60000001L
|
#define FSP_EVENTLOG_INFORMATION 0x60000001L
|
||||||
|
|
||||||
//
|
//
|
||||||
// MessageId: FSP_EVENTLOG_WARNING
|
// MessageId: FSP_EVENTLOG_WARNING
|
||||||
//
|
//
|
||||||
// MessageText:
|
// MessageText:
|
||||||
//
|
//
|
||||||
// %1: %2
|
// %1: %2
|
||||||
//
|
//
|
||||||
#define FSP_EVENTLOG_WARNING 0xA0000001L
|
#define FSP_EVENTLOG_WARNING 0xA0000001L
|
||||||
|
|
||||||
//
|
//
|
||||||
// MessageId: FSP_EVENTLOG_ERROR
|
// MessageId: FSP_EVENTLOG_ERROR
|
||||||
//
|
//
|
||||||
// MessageText:
|
// MessageText:
|
||||||
//
|
//
|
||||||
// %1: %2
|
// %1: %2
|
||||||
//
|
//
|
||||||
#define FSP_EVENTLOG_ERROR 0xE0000001L
|
#define FSP_EVENTLOG_ERROR 0xE0000001L
|
||||||
|
|
||||||
|
@@ -320,25 +320,25 @@ static NTSTATUS FspFsvolCreateNoLock(
|
|||||||
FileNode->FileName.Length -= sizeof(WCHAR);
|
FileNode->FileName.Length -= sizeof(WCHAR);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* not all operations allowed on the root directory */
|
/* not all operations allowed on the root directory */
|
||||||
if (sizeof(WCHAR) == FileNode->FileName.Length &&
|
if (sizeof(WCHAR) == FileNode->FileName.Length &&
|
||||||
(FILE_CREATE == CreateDisposition ||
|
(FILE_CREATE == CreateDisposition ||
|
||||||
FILE_OVERWRITE == CreateDisposition ||
|
FILE_OVERWRITE == CreateDisposition ||
|
||||||
FILE_OVERWRITE_IF == CreateDisposition ||
|
FILE_OVERWRITE_IF == CreateDisposition ||
|
||||||
FILE_SUPERSEDE == CreateDisposition ||
|
FILE_SUPERSEDE == CreateDisposition ||
|
||||||
BooleanFlagOn(Flags, SL_OPEN_TARGET_DIRECTORY)))
|
BooleanFlagOn(Flags, SL_OPEN_TARGET_DIRECTORY)))
|
||||||
{
|
{
|
||||||
FspFileNodeDereference(FileNode);
|
FspFileNodeDereference(FileNode);
|
||||||
return STATUS_ACCESS_DENIED;
|
return STATUS_ACCESS_DENIED;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* cannot FILE_DELETE_ON_CLOSE on the root directory */
|
/* cannot FILE_DELETE_ON_CLOSE on the root directory */
|
||||||
if (sizeof(WCHAR) == FileNode->FileName.Length &&
|
if (sizeof(WCHAR) == FileNode->FileName.Length &&
|
||||||
FlagOn(CreateOptions, FILE_DELETE_ON_CLOSE))
|
FlagOn(CreateOptions, FILE_DELETE_ON_CLOSE))
|
||||||
{
|
{
|
||||||
FspFileNodeDereference(FileNode);
|
FspFileNodeDereference(FileNode);
|
||||||
return STATUS_CANNOT_DELETE;
|
return STATUS_CANNOT_DELETE;
|
||||||
}
|
}
|
||||||
|
|
||||||
Result = FspFileDescCreate(&FileDesc);
|
Result = FspFileDescCreate(&FileDesc);
|
||||||
if (!NT_SUCCESS(Result))
|
if (!NT_SUCCESS(Result))
|
||||||
|
Reference in New Issue
Block a user