Ignore:
Timestamp:
6/13/2010 6:28:11 AM (2 years ago)
Author:
lowjoel
Message:

Forward-port from Eraser 6.0: Fix crash when a volume is connected but not mounted.

Location:
trunk/eraser
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/eraser

  • trunk/eraser/Eraser.DefaultPlugins/ErasureTargets/FolderErasureTarget.cs

    r2167 r2170  
    188188                bool isVolumeRoot = directory.Parent == null; 
    189189                foreach (VolumeInfo volume in VolumeInfo.Volumes) 
    190                     foreach (DirectoryInfo mountPoint in volume.MountPoints) 
    191                         if (directory.FullName == mountPoint.FullName) 
    192                             isVolumeRoot = true; 
     190                    if (volume.IsReady) 
     191                        foreach (DirectoryInfo mountPoint in volume.MountPoints) 
     192                            if (directory.FullName == mountPoint.FullName) 
     193                                isVolumeRoot = true; 
    193194 
    194195                //If the folder is a mount point, then don't delete it. If it isn't, 
Note: See TracChangeset for help on using the changeset viewer.