Commit ef456af6 authored by Gerard Patel's avatar Gerard Patel Committed by Alexandre Julliard

Don't return last active popup if it is pointing to a deleted window.

parent 1f192c15
...@@ -2766,6 +2766,8 @@ HWND WINAPI GetLastActivePopup( HWND hwnd ) ...@@ -2766,6 +2766,8 @@ HWND WINAPI GetLastActivePopup( HWND hwnd )
if (!wndPtr) return hwnd; if (!wndPtr) return hwnd;
retval = wndPtr->hwndLastActive; retval = wndPtr->hwndLastActive;
WIN_ReleaseWndPtr(wndPtr); WIN_ReleaseWndPtr(wndPtr);
if ((retval != hwnd) && (!IsWindow(retval)))
retval = hwnd;
return retval; return retval;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment