Skip to content

Commit 0c5fac3

Browse files
committed
Fixed a crash while using process list filter
Fixed x32 pointer ranges
1 parent 0ce6927 commit 0c5fac3

2 files changed

Lines changed: 14 additions & 3 deletions

File tree

StructureSpiderAdvanced/MainWindow.xaml.cs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,18 @@ private void UpdateListOfProcesses()
118118
{
119119
if (!process.ProcessName.ToLower().Contains(TextBox_ProcessFilter.Text)) continue;
120120

121-
var bits = ProcessManager.Is32BitProcess(process) ? "x32" : "x64";
121+
bool is32 = false;
122+
123+
try
124+
{
125+
is32 = ProcessManager.Is32BitProcess(process);
126+
}
127+
catch
128+
{
129+
continue;
130+
}
131+
132+
var bits = is32 ? "x32" : "x64";
122133
ViewModel.Processes.Add($"{process.ProcessName}, ({bits}), Id: {process.Id}");
123134
}
124135

StructureSpiderAdvanced/Memory.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ public Memory(IntPtr procHandle)
2020
{
2121
PointerStaticMinValue = 0x10000000;
2222
PointerStaticMaxValue = 0xF0000000;
23-
PointerMinValue = 0x10000;
24-
PointerMaxValue = 0x100000;
23+
PointerMinValue = 0x10000;
24+
PointerMaxValue = 0xF0000000;
2525
PointerLength = 4;
2626
ProcHandle = procHandle;
2727
}

0 commit comments

Comments
 (0)