mirror of
https://github.com/winfsp/winfsp.git
synced 2025-04-24 09:23:37 -05:00
dll: FspAccessCheck
This commit is contained in:
parent
30662ac9fa
commit
3abc2dbdf1
@ -120,6 +120,15 @@ FSP_API NTSTATUS FspAccessCheck(FSP_FILE_SYSTEM *FileSystem,
|
|||||||
if (0 == (FileAttributes && FILE_ATTRIBUTE_DIRECTORY))
|
if (0 == (FileAttributes && FILE_ATTRIBUTE_DIRECTORY))
|
||||||
return STATUS_NOT_A_DIRECTORY;
|
return STATUS_NOT_A_DIRECTORY;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if ((Request->Req.Create.CreateOptions & FILE_DIRECTORY_FILE) &&
|
||||||
|
0 == (FileAttributes && FILE_ATTRIBUTE_DIRECTORY))
|
||||||
|
return STATUS_NOT_A_DIRECTORY;
|
||||||
|
if ((Request->Req.Create.CreateOptions & FILE_NON_DIRECTORY_FILE) &&
|
||||||
|
0 != (FileAttributes && FILE_ATTRIBUTE_DIRECTORY))
|
||||||
|
return STATUS_NOT_A_DIRECTORY;
|
||||||
|
}
|
||||||
|
|
||||||
if (0 != (FileAttributes && FILE_ATTRIBUTE_READONLY))
|
if (0 != (FileAttributes && FILE_ATTRIBUTE_READONLY))
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user