mirror of
https://github.com/winfsp/winfsp.git
synced 2025-04-23 08:53:01 -05:00
sys: IRP_MJ_CLOSE
This commit is contained in:
parent
154a945c9a
commit
fa2ab4f8f7
@ -67,7 +67,7 @@ static NTSTATUS FspFsvolClose(
|
|||||||
FspFileContextRelease(FsContext);
|
FspFileContextRelease(FsContext);
|
||||||
|
|
||||||
/* create the user-mode file system request */
|
/* create the user-mode file system request */
|
||||||
Result = FspIopCreateRequest(Irp, FileNameRequired ? &FsContext->FileName : 0, 0, &Request);
|
Result = FspIopCreateRequest(0, FileNameRequired ? &FsContext->FileName : 0, 0, &Request);
|
||||||
if (!NT_SUCCESS(Result))
|
if (!NT_SUCCESS(Result))
|
||||||
{
|
{
|
||||||
/* IRP_MJ_CLOSE cannot really fail :-\ */
|
/* IRP_MJ_CLOSE cannot really fail :-\ */
|
||||||
@ -81,9 +81,8 @@ static NTSTATUS FspFsvolClose(
|
|||||||
|
|
||||||
/* populate the Close request */
|
/* populate the Close request */
|
||||||
Request->Kind = FspFsctlTransactCloseKind;
|
Request->Kind = FspFsctlTransactCloseKind;
|
||||||
Request->Req.Cleanup.UserContext = FsContext->UserContext;
|
Request->Req.Close.UserContext = FsContext->UserContext;
|
||||||
Request->Req.Cleanup.UserContext2 = (UINT_PTR)FileObject->FsContext2;
|
Request->Req.Close.UserContext2 = (UINT_PTR)FileObject->FsContext2;
|
||||||
Request->Req.Cleanup.Delete = DeletePending && 0 == OpenCount;
|
|
||||||
|
|
||||||
/* post as a work request; this allows us to complete our own IRP and return immediately! */
|
/* post as a work request; this allows us to complete our own IRP and return immediately! */
|
||||||
if (!FspIopPostWorkRequest(DeviceObject, Request))
|
if (!FspIopPostWorkRequest(DeviceObject, Request))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user