We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b62951e commit f28a12eCopy full SHA for f28a12e
src/ICSharpCode.SharpZipLib/Zip/ZipFile.cs
@@ -2466,10 +2466,10 @@ private int GetDescriptorSize(ZipUpdate update)
2466
int result = 0;
2467
if ((update.Entry.Flags & (int)GeneralBitFlags.Descriptor) != 0)
2468
{
2469
- result = ZipConstants.DataDescriptorSize - 4;
+ result = ZipConstants.DataDescriptorSize;
2470
if (update.Entry.LocalHeaderRequiresZip64)
2471
2472
- result = ZipConstants.Zip64DataDescriptorSize - 4;
+ result = ZipConstants.Zip64DataDescriptorSize;
2473
}
2474
2475
return result;
0 commit comments