Changeset 1041


Ignore:
Timestamp:
5/10/2009 2:32:43 AM (5 years ago)
Author:
lowjoel
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eraser6/Manager/Task.cs

    r1022 r1041  
    567567                        continue; 
    568568 
     569                    //Get the size of the file and its ADSes 
    569570                    totalSize += file.Length; 
    570                     GetPathADSes(result, out totalSize, file.FullName); 
     571                    long adsesSize = 0; 
     572                    GetPathADSes(result, out adsesSize, file.FullName); 
     573                    totalSize += adsesSize; 
     574 
     575                    //Append this file to the list of files to erase. 
    571576                    result.Add(file.FullName); 
    572577                } 
Note: See TracChangeset for help on using the changeset viewer.