mirror of
https://github.com/kangyu-california/PersistentWindows.git
synced 2025-05-11 04:55:39 +02:00
fix exception when capture new windows
This commit is contained in:
parent
4cece1ab9c
commit
1e580843ff
1 changed files with 3 additions and 0 deletions
|
@ -1180,6 +1180,9 @@ namespace PersistentWindows.Common
|
|||
if (string.IsNullOrEmpty(className))
|
||||
return -1;
|
||||
|
||||
if (!windowProcessName.ContainsKey(hwnd))
|
||||
return -1;
|
||||
|
||||
string procName = windowProcessName[hwnd];
|
||||
string title = GetWindowTitle(hwnd);
|
||||
if (className.Equals("ApplicationFrameWindow"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue