From a037dadaa228c4f567e469629cd3fd9ba4c198f3 Mon Sep 17 00:00:00 2001 From: alcexhim Date: Sat, 25 Oct 2014 09:50:59 -0400 Subject: [PATCH] Properly advance the next sector for MSAT --- .../Microsoft/CompoundDocument/CompoundDocumentDataFormat.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CSharp/Plugins/UniversalEditor.Plugins.Microsoft/DataFormats/FileSystem/Microsoft/CompoundDocument/CompoundDocumentDataFormat.cs b/CSharp/Plugins/UniversalEditor.Plugins.Microsoft/DataFormats/FileSystem/Microsoft/CompoundDocument/CompoundDocumentDataFormat.cs index c647fb3e..dfd5c64b 100644 --- a/CSharp/Plugins/UniversalEditor.Plugins.Microsoft/DataFormats/FileSystem/Microsoft/CompoundDocument/CompoundDocumentDataFormat.cs +++ b/CSharp/Plugins/UniversalEditor.Plugins.Microsoft/DataFormats/FileSystem/Microsoft/CompoundDocument/CompoundDocumentDataFormat.cs @@ -163,7 +163,7 @@ namespace UniversalEditor.DataFormats.FileSystem.Microsoft.CompoundDocument int[] masterSectorAllocationTablePart = reader.ReadInt32Array(countForMSAT); Array.Copy(masterSectorAllocationTablePart, 0, masterSectorAllocationTable, nextPositionForMSAT, masterSectorAllocationTablePart.Length); - nextSectorForMSAT = masterSectorAllocationTablePart[masterSectorAllocationTablePart.Length - 1]; + nextSectorForMSAT = masterSectorAllocationTablePart[nextSectorForMSAT]; } #endregion #region Read Sector Allocation Table