Changeset 2081


Ignore:
Timestamp:
05/08/10 14:33:27 (4 years ago)
Author:
lowjoel
Message:

Forward port from Eraser 6.0: Completely fixes the bug address in r1041: GetPathADSes takes a value by "out", meaning whatever value the totalSize variable had before would have been overwritten. Fixed the code to work properly now. This would have reported the wrong amount of data that needs to be written to erase the file.

Location:
trunk/eraser
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/eraser

  • trunk/eraser/Eraser.DefaultPlugins/ErasureTargets/FolderErasureTarget.cs

    r2074 r2081  
    111111                    { 
    112112                        totalSize += file.Length; 
    113                         GetPathADSes(result, out totalSize, file.FullName); 
     113                        long adsesSize = 0; 
     114                        GetPathADSes(result, out adsesSize, file.FullName); 
     115                        totalSize += adsesSize; 
    114116                        result.Add(file.FullName); 
    115117                    } 
Note: See TracChangeset for help on using the changeset viewer.