Skip to content

Commit

Permalink
store oplock key in file object
Browse files Browse the repository at this point in the history
  • Loading branch information
bailey27 authored and Liryna committed Jul 16, 2016
1 parent 1e1bff3 commit d7d72b2
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions sys/create.c
Original file line number Diff line number Diff line change
Expand Up @@ -1092,6 +1092,22 @@ Return Value:
__leave;
}
}

//
// Let's make sure that if the caller provided an oplock key that it
// gets stored in the file object.
//

status = FsRtlCheckOplockEx(DokanGetFcbOplock(fcb),
Irp,
OPLOCK_FLAG_OPLOCK_KEY_CHECK_ONLY,
NULL,
NULL,
NULL );

if (!NT_SUCCESS(status)) {
__leave;
}

if (OpenRequiringOplock) {
DDbgPrint(" OpenRequiringOplock\n");
Expand Down

0 comments on commit d7d72b2

Please sign in to comment.