mirror of
https://github.com/winfsp/winfsp.git
synced 2025-04-22 16:33:02 -05:00
sys: create: oplock testing
This commit is contained in:
parent
0a59c5d685
commit
6a48087d5f
@ -845,11 +845,10 @@ NTSTATUS FspFsvolCreateComplete(
|
||||
FspIopSetIrpResponse(Irp, Response);
|
||||
FspIopRequestContext(Request, FspIopRequestExtraContext) = FileNode;
|
||||
|
||||
Irp->IoStatus.Information = 0;
|
||||
Result = FspFsvolCreateSharingViolationOplock(
|
||||
FsvolDeviceObject, Irp, IrpSp, FALSE);
|
||||
|
||||
FSP_RETURN();
|
||||
if (STATUS_PENDING == Result)
|
||||
FSP_RETURN();
|
||||
}
|
||||
|
||||
/* unable to open the FileNode; post a Close request */
|
||||
@ -1268,6 +1267,7 @@ static NTSTATUS FspFsvolCreateSharingViolationOplock(
|
||||
return FspWqRepostIrpWorkItem(Irp,
|
||||
FspFsvolCreateSharingViolationOplock, FspFsvolCreateRequestFini);
|
||||
|
||||
Irp->IoStatus.Information = 0;
|
||||
return STATUS_SHARING_VIOLATION;
|
||||
}
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user