Skip to content

Commit b8efd51

Browse files
committed
sys - Makes the mount manager forget the volume rather than leaving a do-not-assign record.
1 parent 569d27d commit b8efd51

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

sys/init.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -851,12 +851,12 @@ VOID DokanDeleteMountPoint(__in PDokanDCB Dcb) {
851851
if (Dcb->UseMountManager) {
852852
Dcb->UseMountManager = FALSE; // To avoid recursive call
853853
if (IsMountPointDriveLetter(Dcb->MountPoint)) {
854-
DokanLogInfo(
855-
&logger,
856-
L"Issuing a mount manager do-not-assign delete for device %wZ",
857-
Dcb->DiskDeviceName);
858-
// Deprecated logic to keep the original semantics intact when used.
859-
DokanSendVolumeDeletePoints(Dcb->MountPoint, Dcb->DiskDeviceName);
854+
DokanLogInfo(&logger,
855+
L"Issuing a clean mount manager delete for device %wZ",
856+
Dcb->DiskDeviceName);
857+
// This is the correct way to do it. It makes the mount manager forget
858+
// the volume rather than leaving a do-not-assign record.
859+
DokanSendVolumeDeletePoints(NULL, Dcb->DiskDeviceName);
860860
} else if (Dcb->PersistentSymbolicLinkName) {
861861
// Remove the actual reparse point on our directory mount point.
862862
ULONG removeReparseInputlength = 0;

0 commit comments

Comments
 (0)