From fc443c8b10681bf4b81edc0ce127da659b509e16 Mon Sep 17 00:00:00 2001 From: KK Su Date: Tue, 15 Sep 2020 15:22:59 +1000 Subject: [PATCH] Now ZipExtractor only checks processes with executable name. (#409) --- ZipExtractor/FormMain.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ZipExtractor/FormMain.cs b/ZipExtractor/FormMain.cs index 6a6654bc..1d9e9be9 100644 --- a/ZipExtractor/FormMain.cs +++ b/ZipExtractor/FormMain.cs @@ -51,7 +51,7 @@ private void FormMain_Shown(object sender, EventArgs e) _backgroundWorker.DoWork += (o, eventArgs) => { - foreach (var process in Process.GetProcesses()) + foreach (var process in Process.GetProcessesByName(Path.GetFileNameWithoutExtension(executablePath))) { try { @@ -275,4 +275,4 @@ private void FormMain_FormClosing(object sender, FormClosingEventArgs e) _logBuilder.ToString()); } } -} \ No newline at end of file +}