Changeset 2139


Ignore:
Timestamp:
5/15/2010 11:30:36 PM (5 years ago)
Author:
lowjoel
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eraser6/6.0/Eraser.Util/VolumeInfo.cs

    r1892 r2139  
    110110                        pathNamesBuffer = Marshal.AllocHGlobal((int)(currentBufferSize * sizeof(char))); 
    111111                    } 
     112                    else if (Marshal.GetLastWin32Error() == 21 /*ERROR_NOT_READY*/) 
     113                        return result; 
    112114                    else 
    113115                        throw Marshal.GetExceptionForHR(Marshal.GetHRForLastWin32Error()); 
Note: See TracChangeset for help on using the changeset viewer.