sys: oplock: misc fixes and improvements

This commit is contained in:
Bill Zissimopoulos
2016-11-16 13:34:43 -08:00
parent 4294182c1a
commit 358db2a54f
3 changed files with 50 additions and 60 deletions

View File

@ -779,8 +779,8 @@ NTSTATUS FspOplockFsctrlF(
OpenCount);
/*
* When the IRP is IRP_MJ_FILE_SYSTEM_CONTROL, FsRtlOplockFsctrl always completes the IRP
* (unless it raises). So return STATUS_SUCCESS in that case.
* When the IRP is IRP_MJ_FILE_SYSTEM_CONTROL, FsRtlOplockFsctrl always takes ownership
* of the IRP (unless it raises). So return STATUS_SUCCESS in that case.
*/
if (!Create)
Result = STATUS_SUCCESS;