Changeset 2659


Ignore:
Timestamp:
5/24/2012 5:04:19 AM (2 years ago)
Author:
lowjoel
Message:

When we are copying over the plausible deniability file, we just need to include some data from it; there's no need to lock the file for exclusive reading.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/eraser/Eraser.DefaultPlugins/FileSystems/Windows.cs

    r2646 r2659  
    274274            long amountToCopy = Math.Min(stream.Length, 
    275275                Math.Min(4 * 1024 * 1024, shadowFileInfo.Length)); 
    276             using (FileStream shadowFileStream = shadowFileInfo.OpenRead()) 
     276            using (FileStream shadowFileStream = shadowFileInfo.Open( 
     277                    FileMode.Open, FileAccess.Read, FileShare.ReadWrite)) 
    277278            { 
    278279                while (stream.Position < amountToCopy) 
Note: See TracChangeset for help on using the changeset viewer.