Skip to content

Commit 2b9a527

Browse files
Small fix just in case. (#25)
1 parent cb41f8a commit 2b9a527

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

SabreTools.Serialization/Wrappers/RAR.Extraction.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,10 @@ public bool Extract(string outputDirectory, bool lookForHeader, bool includeDebu
8787
}
8888
}
8989

90-
if (isSolid)
90+
// Still check SharpCompress's archive-level isSolid flag. Based on the way the check works on their
91+
// end, it's possible that a multi-block solid archive might have the second (or more files) file not
92+
// solid? It doesn't hurt to check either way.
93+
if (isSolid || rarFile.IsSolid)
9194
return ExtractSolid(rarFile, outputDirectory, includeDebug);
9295
else
9396
return ExtractNonSolid(rarFile, outputDirectory, includeDebug);

SabreTools.Serialization/Wrappers/SevenZip.Extraction.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,10 @@ public bool Extract(string outputDirectory, bool lookForHeader, bool includeDebu
8686
}
8787
}
8888

89-
if (isSolid)
89+
// Still check SharpCompress's archive-level isSolid flag. Based on the way the check works on their
90+
// end, it's possible that a multi-block solid archive might have the second (or more files) file not
91+
// solid? It doesn't hurt to check either way.
92+
if (isSolid || sevenZip.IsSolid)
9093
return ExtractSolid(sevenZip, outputDirectory, includeDebug);
9194
else
9295
return ExtractNonSolid(sevenZip, outputDirectory, includeDebug);

0 commit comments

Comments
 (0)