avoid crash

This commit is contained in:
Kang Yu 2024-11-19 21:26:05 -08:00
parent 12e6522a78
commit 0d6940b6ec

View file

@ -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);