From 5c1149aa8b470826c70d154c0285d8d79e1b0e8e Mon Sep 17 00:00:00 2001 From: Lars Vahlenberg Date: Sat, 8 Jun 2024 17:22:20 +0200 Subject: [PATCH] #844 --- src/SharpCompress/Common/Rar/RarVolume.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/SharpCompress/Common/Rar/RarVolume.cs b/src/SharpCompress/Common/Rar/RarVolume.cs index f3d55393..d05e16c2 100644 --- a/src/SharpCompress/Common/Rar/RarVolume.cs +++ b/src/SharpCompress/Common/Rar/RarVolume.cs @@ -61,9 +61,8 @@ internal IEnumerable GetVolumeFileParts() var fh = (FileHeader)header; if (fh.FileName == "CMT") { - var part = CreateFilePart(lastMarkHeader!, fh); var buffer = new byte[fh.CompressedSize]; - part.GetCompressedStream().Read(buffer, 0, buffer.Length); + fh.PackedStream.Read(buffer, 0, buffer.Length); Comment = Encoding.UTF8.GetString(buffer, 0, buffer.Length - 1); } }