mirror of
https://github.com/winfsp/winfsp.git
synced 2025-07-03 17:32:57 -05:00
ensure that all source files use UNIX newlines
This commit is contained in:
@ -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))
|
||||
|
Reference in New Issue
Block a user