Skip to content

Commit f28a12e

Browse files
committed
fix size calculation in GetDescriptorSize
1 parent b62951e commit f28a12e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ICSharpCode.SharpZipLib/Zip/ZipFile.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2466,10 +2466,10 @@ private int GetDescriptorSize(ZipUpdate update)
24662466
int result = 0;
24672467
if ((update.Entry.Flags & (int)GeneralBitFlags.Descriptor) != 0)
24682468
{
2469-
result = ZipConstants.DataDescriptorSize - 4;
2469+
result = ZipConstants.DataDescriptorSize;
24702470
if (update.Entry.LocalHeaderRequiresZip64)
24712471
{
2472-
result = ZipConstants.Zip64DataDescriptorSize - 4;
2472+
result = ZipConstants.Zip64DataDescriptorSize;
24732473
}
24742474
}
24752475
return result;

0 commit comments

Comments
 (0)