mirror of
https://github.com/winfsp/winfsp.git
synced 2025-06-07 20:42:09 -05:00
sys: IRP_MJ_CREATE: disassociate FsContext from Request on success!
This commit is contained in:
parent
7c4f77019f
commit
6d4700e0d3
@ -554,6 +554,7 @@ VOID FspFsvolCreateComplete(
|
||||
}
|
||||
|
||||
/* SUCCESS! */
|
||||
FspIopRequestContext(Request, RequestFsContext) = 0;
|
||||
Irp->IoStatus.Information = (ULONG_PTR)Response->IoStatus.Information;
|
||||
Result = STATUS_SUCCESS;
|
||||
}
|
||||
@ -598,6 +599,7 @@ VOID FspFsvolCreateComplete(
|
||||
else
|
||||
{
|
||||
/* SUCCESS! */
|
||||
FspIopRequestContext(Request, RequestFsContext) = 0;
|
||||
Irp->IoStatus.Information = (ULONG_PTR)Response->IoStatus.Information;
|
||||
Result = STATUS_SUCCESS;
|
||||
}
|
||||
@ -629,6 +631,7 @@ VOID FspFsvolCreateComplete(
|
||||
FspFileContextPgioUnlock(FsContext);
|
||||
|
||||
/* SUCCESS! */
|
||||
FspIopRequestContext(Request, RequestFsContext) = 0;
|
||||
Irp->IoStatus.Information = Request->Req.Overwrite.Supersede ? FILE_SUPERSEDED : FILE_OVERWRITTEN;
|
||||
Result = STATUS_SUCCESS;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user