From aaa6a2cb0f54ed1c1c1d4051dacc958de957c6a9 Mon Sep 17 00:00:00 2001 From: H4NM Date: Sun, 16 Feb 2025 21:38:39 +0100 Subject: [PATCH] Fix issue with Listen mode where the retrieved process name of the PID wasn't successfully added as a monitored process --- WhoYouCalling/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WhoYouCalling/Program.cs b/WhoYouCalling/Program.cs index 3488734..2337bbe 100644 --- a/WhoYouCalling/Program.cs +++ b/WhoYouCalling/Program.cs @@ -273,7 +273,7 @@ private static void MonitorRunningProcess(int pid) { s_trackedMainPid = pid; s_mainExecutableProcessName = System.Diagnostics.Process.GetProcessById(s_trackedMainPid).ProcessName; - AddProcessToMonitor(pid: s_trackedMainPid); + AddProcessToMonitor(pid: s_trackedMainPid, processName: s_mainExecutableProcessName); ConsoleOutput.Print($"Listening to PID {s_trackedMainPid}({s_mainExecutableProcessName})", PrintType.Info); CatalogETWActivity(eventType: EventType.ProcessMonitor, processName: s_mainExecutableProcessName, processID: s_trackedMainPid); }