Skip to content

Commit 92f7d2e

Browse files
committed
Kernel - Add Vcb null check before marking the volume as having wait events
fixes #1093 This is clearly not enough but might help until DokanDiskUserFsRequest TODO is implemented
1 parent e9f4bef commit 92f7d2e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

sys/fscontrol.c

+3
Original file line numberDiff line numberDiff line change
@@ -528,6 +528,9 @@ NTSTATUS DokanProcessAndPullEvents(__in PREQUEST_CONTEXT RequestContext) {
528528
DOKAN_LOG_FINE_IRP(RequestContext, "No output buffer provided");
529529
return status;
530530
}
531+
if (IsUnmountPendingVcb(RequestContext->Vcb)) {
532+
return STATUS_NO_SUCH_DEVICE;
533+
}
531534
// 3 - Flag the device as having workers starting to pull events.
532535
RequestContext->Vcb->HasEventWait = TRUE;
533536

0 commit comments

Comments
 (0)