mirror of
https://github.com/winfsp/winfsp.git
synced 2025-04-23 00:43:00 -05:00
sys: lockctl: oplocks
This commit is contained in:
parent
7c34d738b7
commit
97ee4fa77f
@ -50,10 +50,11 @@ static NTSTATUS FspFsvolLockControlRetry(
|
|||||||
return FspWqRepostIrpWorkItem(Irp, FspFsvolLockControlRetry, 0);
|
return FspWqRepostIrpWorkItem(Irp, FspFsvolLockControlRetry, 0);
|
||||||
|
|
||||||
/* perform oplock check; we are only implementing Win7 behavior */
|
/* perform oplock check; we are only implementing Win7 behavior */
|
||||||
Result = FspCheckOplock(FspFileNodeAddrOfOplock(FileNode), Irp, 0, 0, 0);
|
Result = FspCheckOplock(FspFileNodeAddrOfOplock(FileNode), Irp,
|
||||||
if (!NT_SUCCESS(Result))
|
0, FspWqOplockComplete, FspWqOplockPrepare);
|
||||||
|
if (STATUS_PENDING == Result)
|
||||||
{
|
{
|
||||||
FspFileNodeRelease(FileNode);
|
FspFileNodeRelease(FileNode, Main);
|
||||||
return Result;
|
return Result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user