Changeset 489
- Timestamp:
- 11/10/2008 9:22:48 AM (5 years ago)
- Location:
- branches/eraser6/Util
- Files:
-
- 2 edited
-
File.cs (modified) (1 diff)
-
VolumeInfo.cs (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eraser6/Util/File.cs
r461 r489 206 206 } 207 207 208 throw new Win32Exception("Unknown DeviceIoControl error.");208 return false; 209 209 } 210 210 -
branches/eraser6/Util/VolumeInfo.cs
r466 r489 147 147 if (GetVolumeNameForVolumeMountPoint(currentDir, volumeID, 50)) 148 148 return new VolumeInfo(volumeID.ToString()); 149 else if (Marshal.GetLastWin32Error() != 4390 /*ERROR_NOT_A_REPARSE_POINT*/) 150 throw new Win32Exception(Marshal.GetLastWin32Error()); 149 else 150 switch (Marshal.GetLastWin32Error()) 151 { 152 case 1: 153 case 4390: 154 break; 155 default: 156 throw new Win32Exception(Marshal.GetLastWin32Error()); 157 } 151 158 mountpointDir = mountpointDir.Parent; 152 159 }
Note: See TracChangeset
for help on using the changeset viewer.
