Ignore:
Timestamp:
05/15/10 23:32:32 (4 years ago)
Author:
lowjoel
Message:

Forward port from Eraser 6.0: Check that the Win32 error code is not ERROR_NOT_READY when we query the drive's mount points, as certain drives may not be mounted or have a usable filesystem when queried. Fixes crash in http://bbs.heidi.ie/viewtopic.php?f=2&t=6207.

Location:
trunk/eraser
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/eraser

  • trunk/eraser/Eraser.Util/VolumeInfo.cs

    r1873 r2140  
    105105                    switch (errorCode) 
    106106                    { 
     107                        case Win32ErrorCode.NotReady: 
     108                            //The drive isn't ready yet: just return an empty list. 
     109                            return result; 
    107110                        case Win32ErrorCode.MoreData: 
    108111                            pathNamesBuffer.EnsureCapacity((int)returnLength); 
Note: See TracChangeset for help on using the changeset viewer.