Changeset 1658 for trunk/eraser6


Ignore:
Timestamp:
1/25/2010 1:34:33 AM (4 years ago)
Author:
lowjoel
Message:

Forward port from Eraser 6.0: Fixed IOExeption when erasing files with decoy files selected and with space constraints. The decoy will only be copied as much as the original file.

Location:
trunk/eraser6
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/eraser6

  • trunk/eraser6/Eraser.Manager/FileSystem.cs

    r1360 r1658  
    140140            } 
    141141 
    142             //Dump the copy (the first 4MB, or less, depending on the file size and available 
    143             //user space) 
    144             long amountToCopy = Math.Min(4 * 1024 * 1024, shadowFileInfo.Length); 
     142            //Dump the copy (the first 4MB, or less, depending on the file size and size of 
     143            //the original file) 
     144            long amountToCopy = Math.Min(stream.Length, 
     145                Math.Min(4 * 1024 * 1024, shadowFileInfo.Length)); 
    145146            using (FileStream shadowFileStream = shadowFileInfo.OpenRead()) 
    146147            { 
Note: See TracChangeset for help on using the changeset viewer.