From 4eeb48db1320cff7f17af1233af00e166c05c641 Mon Sep 17 00:00:00 2001 From: zeromus Date: Sun, 12 Oct 2014 02:49:02 +0000 Subject: [PATCH] block the use of the input stream length property by unmanaged 7z code. I think it was only using it for progress reporting. --- BizHawk.Client.Common/7z/ArchiveUpdateCallback.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/BizHawk.Client.Common/7z/ArchiveUpdateCallback.cs b/BizHawk.Client.Common/7z/ArchiveUpdateCallback.cs index ea26b87a5c..c245a233c1 100644 --- a/BizHawk.Client.Common/7z/ArchiveUpdateCallback.cs +++ b/BizHawk.Client.Common/7z/ArchiveUpdateCallback.cs @@ -496,6 +496,11 @@ namespace SevenZip case ItemPropId.Size: #region Size + //zero 11-oct-2014 - this doesnt matter, we think it's only used for updating the progress indicator + value.VarType = VarEnum.VT_UI8; + //value.UInt64Value = unchecked((ulong)-1); + break; + value.VarType = VarEnum.VT_UI8; UInt64 size; if (_updateData.Mode != InternalCompressionMode.Modify)