mirror of
https://github.com/winfsp/winfsp.git
synced 2025-06-14 15:52:47 -05:00
sys, dll: Request->FileName: testing
This commit is contained in:
@ -12,6 +12,7 @@ FSP_API NTSTATUS FspFileSystemOpCleanup(FSP_FILE_SYSTEM *FileSystem,
|
||||
if (0 != FileSystem->Interface->Cleanup)
|
||||
FileSystem->Interface->Cleanup(FileSystem, Request,
|
||||
(PVOID)Request->Req.Cleanup.UserContext,
|
||||
0 != Request->FileName.Size ? (PWSTR)Request->Buffer : 0,
|
||||
0 != Request->Req.Cleanup.Delete);
|
||||
|
||||
return FspFileSystemSendCleanupResponse(FileSystem, Request);
|
||||
|
@ -79,7 +79,8 @@ FSP_API NTSTATUS FspFileSystemOpSetInformation(FSP_FILE_SYSTEM *FileSystem,
|
||||
if (0 != FileSystem->Interface->CanDelete)
|
||||
if (Request->Req.SetInformation.Info.Disposition.Delete)
|
||||
Result = FileSystem->Interface->CanDelete(FileSystem, Request,
|
||||
(PVOID)Request->Req.SetInformation.UserContext);
|
||||
(PVOID)Request->Req.SetInformation.UserContext,
|
||||
(PWSTR)Request->Buffer);
|
||||
else
|
||||
Result = STATUS_SUCCESS;
|
||||
break;
|
||||
|
@ -64,12 +64,12 @@ static NTSTATUS FspFsvolCleanup(
|
||||
FspFileNodeClose(FileNode, FileObject, &DeletePending);
|
||||
|
||||
/*
|
||||
* The FileNode is no longer in the Context table, therefore we do not
|
||||
* need to protect its FileName against renames!
|
||||
* If DeletePending is TRUE, the FileNode is no longer in the Context table,
|
||||
* therefore we do not need to protect its FileName against renames!
|
||||
*/
|
||||
|
||||
/* create the user-mode file system request; MustSucceed because IRP_MJ_CLEANUP cannot fail */
|
||||
FspIopCreateRequestMustSucceed(Irp, &FileNode->FileName, 0, &Request);
|
||||
FspIopCreateRequestMustSucceed(Irp, DeletePending ? &FileNode->FileName : 0, 0, &Request);
|
||||
Request->Kind = FspFsctlTransactCleanupKind;
|
||||
Request->Req.Cleanup.UserContext = FileNode->UserContext;
|
||||
Request->Req.Cleanup.UserContext2 = FileDesc->UserContext2;
|
||||
|
Reference in New Issue
Block a user