From d4ea17f320a5804f5aee971c1f1240d17daa8feb Mon Sep 17 00:00:00 2001 From: alcexhim Date: Sat, 25 Oct 2014 09:53:37 -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 dfd5c64b..c647fb3e 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[nextSectorForMSAT]; + nextSectorForMSAT = masterSectorAllocationTablePart[masterSectorAllocationTablePart.Length - 1]; } #endregion #region Read Sector Allocation Table