mirror of
https://github.com/winfsp/winfsp.git
synced 2025-04-22 16:33:02 -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);
|
||||
|
||||
/* perform oplock check; we are only implementing Win7 behavior */
|
||||
Result = FspCheckOplock(FspFileNodeAddrOfOplock(FileNode), Irp, 0, 0, 0);
|
||||
if (!NT_SUCCESS(Result))
|
||||
Result = FspCheckOplock(FspFileNodeAddrOfOplock(FileNode), Irp,
|
||||
0, FspWqOplockComplete, FspWqOplockPrepare);
|
||||
if (STATUS_PENDING == Result)
|
||||
{
|
||||
FspFileNodeRelease(FileNode);
|
||||
FspFileNodeRelease(FileNode, Main);
|
||||
return Result;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user