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
f3894dbc7b
commit
93254bede4
@ -49,6 +49,14 @@ static NTSTATUS FspFsvolLockControlRetry(
|
||||
if (!Success)
|
||||
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))
|
||||
{
|
||||
FspFileNodeRelease(FileNode);
|
||||
return Result;
|
||||
}
|
||||
|
||||
/* let the FSRTL package handle this one! */
|
||||
Result = FspFileNodeProcessLockIrp(FileNode, Irp);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user