Skip to content
This repository has been archived by the owner on Apr 9, 2024. It is now read-only.

Commit

Permalink
Fix issue 131
Browse files Browse the repository at this point in the history
  • Loading branch information
benjicoh committed Feb 22, 2022
1 parent 166d53b commit 6925d67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SevenZip/StreamWrappers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ internal sealed class InMultiStreamWrapper : MultiStreamWrapper, ISequentialInSt
int i = 0;
while (File.Exists(fileName))
{
Streams.Add(new FileStream(fileName, FileMode.Open));
Streams.Add(new FileStream(fileName, FileMode.Open, FileAccess.Read));
long length = Streams[i].Length;
StreamOffsets.Add(i++, new KeyValuePair<long, long>(StreamLength, StreamLength + length));
StreamLength += length;
Expand Down Expand Up @@ -504,4 +504,4 @@ private void OnBytesWritten(IntEventArgs e)
}
}
#endif
}
}

0 comments on commit 6925d67

Please sign in to comment.