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

fixed warning "There are some data after the end of the payload data" with multi volume archives #146

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions SevenZip/StreamWrappers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ public int Write(byte[] data, uint size, IntPtr processedSize)
int offset = 0;
var originalSize = (int) size;
Position += size;
_overallLength = Math.Max(Position + 1, _overallLength);
_overallLength = Math.Max(Position, _overallLength);
while (size > _volumeSize - Streams[CurrentStream].Position)
{
var count = (int) (_volumeSize - Streams[CurrentStream].Position);
Expand Down Expand Up @@ -493,4 +493,4 @@ private void OnBytesWritten(IntEventArgs e)
}
}
#endif
}
}