mirror of
https://github.com/kangyu-california/PersistentWindows.git
synced 2025-05-11 04:55:39 +02:00
avoid crash
This commit is contained in:
parent
12e6522a78
commit
0d6940b6ec
1 changed files with 3 additions and 0 deletions
|
@ -2285,6 +2285,9 @@ namespace PersistentWindows.Common
|
|||
if (IsMinimized(hWnd))
|
||||
return IntPtr.Zero;
|
||||
|
||||
if (!monitorApplications.ContainsKey(curDisplayKey))
|
||||
return IntPtr.Zero;
|
||||
|
||||
RECT rect = new RECT();
|
||||
User32.GetWindowRect(hWnd, ref rect);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue