mirror of
https://github.com/winfsp/winfsp.git
synced 2026-11-06 17:16:04 -06:00
dll: move STATUS_FILE_IS_A_DIRECTORY collision check to fsop.c from memfs
This commit is contained in:
1 parent
3e0f2316a7
commit
233904fd51
3 files changed
+27
-20
No files matched your search
+1
-7
@@ -470,13 +470,7 @@ static NTSTATUS Create(FSP_FILE_SYSTEM *FileSystem,
|
||||
|
||||
FileNode = MemfsFileNodeMapGet(Memfs->FileNodeMap, FileName);
|
||||
if (0 != FileNode)
|
||||
{
|
||||
if ((CreateOptions & FILE_NON_DIRECTORY_FILE) &&
|
||||
0 != (FileNode->FileInfo.FileAttributes & FILE_ATTRIBUTE_DIRECTORY))
|
||||
return STATUS_FILE_IS_A_DIRECTORY;
|
||||
else
|
||||
return STATUS_OBJECT_NAME_COLLISION;
|
||||
}
|
||||
return STATUS_OBJECT_NAME_COLLISION;
|
||||
|
||||
if (!MemfsFileNodeMapGetParent(Memfs->FileNodeMap, FileName, &Result))
|
||||
return Result;
|
||||
|
||||
Reference in new issue
Block a user