From 49253fe3c235a49c37a562d6b9f3d4299dc4b8c4 Mon Sep 17 00:00:00 2001 From: Scott Bilas Date: Tue, 26 Nov 2024 11:54:41 +0000 Subject: [PATCH] Needed after all.. --- src/ProcMonUtils/PmlReader.cs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/ProcMonUtils/PmlReader.cs b/src/ProcMonUtils/PmlReader.cs index 2a94187..f59ed8f 100644 --- a/src/ProcMonUtils/PmlReader.cs +++ b/src/ProcMonUtils/PmlReader.cs @@ -92,11 +92,12 @@ void ReadProcessData(long processesOffset) var processCount = _reader.ReadInt32(); SeekCurrent(processCount * 4); // jump over the process indexes array - //var processDataOffsets = new int[processCount]; // never used this..forget why it's here - //for (var iprocess = 0; iprocess < processDataOffsets.Length; ++iprocess) - // processDataOffsets[iprocess] = _reader.ReadInt32(); + // ReSharper disable once CollectionNeverQueried.Local + var processDataOffsets = new int[processCount]; + for (var iprocess = 0; iprocess < processDataOffsets.Length; ++iprocess) + processDataOffsets[iprocess] = _reader.ReadInt32(); PmlProcess? systemProcess = null; - for (var iprocess = 0; iprocess < processCount/*processDataOffsets.Length*/; ++iprocess) + for (var iprocess = 0; iprocess < processDataOffsets.Length; ++iprocess) { var processIndex = _reader.ReadInt32(); // The process index (for events to use as a reference to the process) var processId = _reader.ReadInt32(); // Process id