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

This commit is contained in:
Gerard Patel 2000-12-15 21:29:13 +00:00 committed by Alexandre Julliard
parent 1f192c15bb
commit ef456af6e5

View File

@ -2766,6 +2766,8 @@ HWND WINAPI GetLastActivePopup( HWND hwnd )
if (!wndPtr) return hwnd;
retval = wndPtr->hwndLastActive;
WIN_ReleaseWndPtr(wndPtr);
if ((retval != hwnd) && (!IsWindow(retval)))
retval = hwnd;
return retval;
}