Skip to content

Commit

Permalink
Kernel - Add Vcb null check before marking the volume as having wait …
Browse files Browse the repository at this point in the history
…events

fixes #1093
This is clearly not enough but might help until DokanDiskUserFsRequest TODO is implemented
  • Loading branch information
Liryna committed May 22, 2022
1 parent e9f4bef commit 92f7d2e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sys/fscontrol.c
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,9 @@ NTSTATUS DokanProcessAndPullEvents(__in PREQUEST_CONTEXT RequestContext) {
DOKAN_LOG_FINE_IRP(RequestContext, "No output buffer provided");
return status;
}
if (IsUnmountPendingVcb(RequestContext->Vcb)) {
return STATUS_NO_SUCH_DEVICE;
}
// 3 - Flag the device as having workers starting to pull events.
RequestContext->Vcb->HasEventWait = TRUE;

Expand Down

0 comments on commit 92f7d2e

Please sign in to comment.