File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments