Skip to content

Commit

Permalink
Needed after all..
Browse files Browse the repository at this point in the history
  • Loading branch information
scottbilas committed Nov 26, 2024
1 parent 3e0f6f5 commit 49253fe
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/ProcMonUtils/PmlReader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 49253fe

Please sign in to comment.