From 10dd03498a8eb07f6b10d82462eccaaaf44eee54 Mon Sep 17 00:00:00 2001 From: Kang Yu Date: Sat, 8 Mar 2025 16:44:18 -0800 Subject: [PATCH] #389, persist exception when running PW with -ignored_process --- .../Common/PersistentWindowProcessor.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Ninjacrab.PersistentWindows.Solution/Common/PersistentWindowProcessor.cs b/Ninjacrab.PersistentWindows.Solution/Common/PersistentWindowProcessor.cs index 6e5e96f..e1bce73 100644 --- a/Ninjacrab.PersistentWindows.Solution/Common/PersistentWindowProcessor.cs +++ b/Ninjacrab.PersistentWindows.Solution/Common/PersistentWindowProcessor.cs @@ -1944,6 +1944,9 @@ namespace PersistentWindows.Common return; } + if (!CaptureProcessName(hwnd)) + return; + if (ignoreProcess.Count > 0) { string processName = windowProcessName[hwnd]; @@ -1951,9 +1954,6 @@ namespace PersistentWindows.Common return; } - if (!CaptureProcessName(hwnd)) - return; - #if DEBUG if (title.Contains("Microsoft Visual Studio") && (eventType == User32Events.EVENT_OBJECT_LOCATIONCHANGE