revert change to rar5 code

... yeah... apparently the thing that fixes rar3 code breaks rar5 code
This commit is contained in:
Morilli
2025-02-11 11:21:51 +01:00
parent a77c03fcaf
commit eb5db176fa

View File

@@ -655,9 +655,7 @@ internal partial class Unpack
private void UnpWriteData(byte[] Data, size_t offset, size_t Size)
{
// allow WrittenFileSize == DestUnpSize here to ensure that 0 size writes
// go through RarStream's Write so that Suspended is set correctly
if (WrittenFileSize > DestUnpSize)
if (WrittenFileSize >= DestUnpSize)
{
return;
}