Commit fa2f5257 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

user32: Use NtUserGetGUIThreadInfo in GetActiveWindow.

parent de739e9f
......@@ -342,15 +342,9 @@ BOOL WINAPI SetForegroundWindow( HWND hwnd )
*/
HWND WINAPI GetActiveWindow(void)
{
HWND ret = 0;
SERVER_START_REQ( get_thread_input )
{
req->tid = GetCurrentThreadId();
if (!wine_server_call_err( req )) ret = wine_server_ptr_handle( reply->active );
}
SERVER_END_REQ;
return ret;
GUITHREADINFO info;
info.cbSize = sizeof(info);
return NtUserGetGUIThreadInfo( GetCurrentThreadId(), &info ) ? info.hwndActive : 0;
}
......
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