1
0
mirror of https://github.com/winfsp/winfsp.git synced 2025-12-23 12:33:03 -06:00

sys: lockctl, read, write: oplocks

This commit is contained in:
Bill Zissimopoulos
2016-11-12 18:01:27 -08:00
parent 7518a6e418
commit 764b772731
3 changed files with 5 additions and 5 deletions

View File

@@ -119,7 +119,7 @@ static NTSTATUS FspFsvolReadCached(
/* perform oplock check */
Result = FspCheckOplock(FspFileNodeAddrOfOplock(FileNode), Irp,
(PVOID)(UINT_PTR)FspFsvolReadCached, FspWqOplockComplete, FspWqOplockPrepare);
if (STATUS_PENDING == Result)
if (!NT_SUCCESS(Result) || STATUS_PENDING == Result)
{
FspFileNodeRelease(FileNode, Main);
return Result;
@@ -250,7 +250,7 @@ static NTSTATUS FspFsvolReadNonCached(
{
Result = FspCheckOplock(FspFileNodeAddrOfOplock(FileNode), Irp,
(PVOID)(UINT_PTR)FspFsvolReadNonCached, FspWqOplockComplete, FspWqOplockPrepare);
if (STATUS_PENDING == Result)
if (!NT_SUCCESS(Result) || STATUS_PENDING == Result)
{
FspFileNodeRelease(FileNode, Full);
return Result;