[FileTools] Try to open with share

This commit is contained in:
Matt Nadareski
2017-03-15 13:44:42 -07:00
parent 79c425a7e3
commit 5b19dbdac6

View File

@@ -235,13 +235,13 @@ namespace SabreTools.Helper.Tools
else else
{ {
long length = new FileInfo(input).Length; long length = new FileInfo(input).Length;
rom = GetStreamInfo(File.OpenRead(input), length, omitFromScan, offset, false); rom = GetStreamInfo(File.Open(input, FileMode.Open, FileAccess.Read, FileShare.ReadWrite), length, omitFromScan, offset, false);
} }
} }
else else
{ {
long length = new FileInfo(input).Length; long length = new FileInfo(input).Length;
rom = GetStreamInfo(File.OpenRead(input), length, omitFromScan, offset, false); rom = GetStreamInfo(File.Open(input, FileMode.Open, FileAccess.Read, FileShare.ReadWrite), length, omitFromScan, offset, false);
} }
// Add unique data from the file // Add unique data from the file