mirror of
https://github.com/winfsp/winfsp.git
synced 2025-06-08 04:52:10 -05:00
sys: create: OpenTargetDirectory handling moved before the Prepare phase
This commit is contained in:
parent
5bf913045e
commit
31eedbddb3
@ -488,6 +488,14 @@ static NTSTATUS FspFsvolCreateNoLock(
|
|||||||
RtlCopyMemory(Request->Buffer + Request->Req.Create.SecurityDescriptor.Offset,
|
RtlCopyMemory(Request->Buffer + Request->Req.Create.SecurityDescriptor.Offset,
|
||||||
SecurityDescriptor, SecurityDescriptorSize);
|
SecurityDescriptor, SecurityDescriptorSize);
|
||||||
|
|
||||||
|
/* fix FileNode->FileName if we were doing SL_OPEN_TARGET_DIRECTORY */
|
||||||
|
if (Request->Req.Create.OpenTargetDirectory)
|
||||||
|
{
|
||||||
|
UNICODE_STRING Suffix;
|
||||||
|
|
||||||
|
FspFileNameSuffix(&FileNode->FileName, &FileNode->FileName, &Suffix);
|
||||||
|
}
|
||||||
|
|
||||||
return FSP_STATUS_IOQ_POST;
|
return FSP_STATUS_IOQ_POST;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -751,14 +759,6 @@ NTSTATUS FspFsvolCreateComplete(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* fix FileNode->FileName if we were doing SL_OPEN_TARGET_DIRECTORY */
|
|
||||||
if (Request->Req.Create.OpenTargetDirectory)
|
|
||||||
{
|
|
||||||
UNICODE_STRING Suffix;
|
|
||||||
|
|
||||||
FspFileNameSuffix(&FileNode->FileName, &FileNode->FileName, &Suffix);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* populate the FileNode/FileDesc fields from the Response */
|
/* populate the FileNode/FileDesc fields from the Response */
|
||||||
FileNode->UserContext = Response->Rsp.Create.Opened.UserContext;
|
FileNode->UserContext = Response->Rsp.Create.Opened.UserContext;
|
||||||
FileNode->IndexNumber = Response->Rsp.Create.Opened.FileInfo.IndexNumber;
|
FileNode->IndexNumber = Response->Rsp.Create.Opened.FileInfo.IndexNumber;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user