Changeset 2726
- Timestamp:
- 6/27/2012 3:17:18 AM (11 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/eraser/Eraser.DefaultPlugins/ErasureTargets/DriveErasureTarget.cs
r2609 r2726 230 230 stepProgress.Total = PhysicalDrive.Size; 231 231 PhysicalDrive.DeleteDriveLayout(); 232 stream = PhysicalDrive.Open(FileAccess.ReadWrite, FileShare.ReadWrite); 232 if (PhysicalDrive.Volumes.Count == 1) 233 { 234 //This could be a removable device where Windows sees an oversized floppy. 235 stream = PhysicalDrive.Volumes[0].Open(FileAccess.ReadWrite, FileShare.ReadWrite); 236 } 237 else if (PhysicalDrive.Volumes.Count > 0) 238 { 239 throw new InvalidOperationException(S._("The partition table on the drive " + 240 "could not be erased.")); 241 } 242 else 243 { 244 stream = PhysicalDrive.Open(FileAccess.ReadWrite, FileShare.ReadWrite); 245 } 233 246 } 234 247 else
Note: See TracChangeset
for help on using the changeset viewer.
