Ignore:
Timestamp:
11/04/07 02:44:42 (7 years ago)
Author:
lowjoel
Message:

-Bumped the release number
-Fixed the End of File error when erasing 0-byte files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/EraserDll/NTFS.cpp

    r65 r74  
    178178    } 
    179179 
    180     if (status != STATUS_SUCCESS && status != STATUS_INVALID_PARAMETER) { 
     180    if (status != STATUS_SUCCESS && status != STATUS_INVALID_PARAMETER && 
     181        ntc.RtlNtStatusToDosError(status) != ERROR_HANDLE_EOF) { 
    181182        context->m_saError.Add(formatNTError(ntc, status)); 
    182183    } 
     
    186187 
    187188    // if we made through with no errors we've overwritten all the file's clusters. 
    188     return NT_SUCCESS(status); 
     189    return NT_SUCCESS(status) || ntc.RtlNtStatusToDosError(status) == ERROR_HANDLE_EOF; 
    189190} 
    190191 
Note: See TracChangeset for help on using the changeset viewer.