From d95752ca22f11913b7ed4c74a9c7cfeeaba9e237 Mon Sep 17 00:00:00 2001 From: James Tabor Date: Thu, 3 Jul 2008 07:17:32 +0000 Subject: [PATCH] GetLastActivePopup is still unimplemented, we return the current window handle if it is valid. svn path=/trunk/; revision=34276 --- reactos/dll/win32/user32/windows/window.c | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/reactos/dll/win32/user32/windows/window.c b/reactos/dll/win32/user32/windows/window.c index 4e20a511b06..f869407ecbe 100644 --- a/reactos/dll/win32/user32/windows/window.c +++ b/reactos/dll/win32/user32/windows/window.c @@ -921,8 +921,24 @@ GetGUIThreadInfo(DWORD idThread, HWND STDCALL GetLastActivePopup(HWND hWnd) { - UNIMPLEMENTED; - return 0; + PWINDOW Wnd, WndParent; + HWND Ret = NULL; + + Wnd = ValidateHwnd(hWnd); + if (Wnd != NULL) + { + _SEH_TRY + { + WndParent = NULL; + Ret = hWnd; + } + _SEH_HANDLE + { + /* Do nothing */ + } + _SEH_END; + } + return Ret; }