user32: Use NtUserGetGUIThreadInfo in GetActiveWindow.
Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Huw Davies <huw@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
de739e9f91
commit
fa2f52578b
|
@ -342,15 +342,9 @@ BOOL WINAPI SetForegroundWindow( HWND hwnd )
|
||||||
*/
|
*/
|
||||||
HWND WINAPI GetActiveWindow(void)
|
HWND WINAPI GetActiveWindow(void)
|
||||||
{
|
{
|
||||||
HWND ret = 0;
|
GUITHREADINFO info;
|
||||||
|
info.cbSize = sizeof(info);
|
||||||
SERVER_START_REQ( get_thread_input )
|
return NtUserGetGUIThreadInfo( GetCurrentThreadId(), &info ) ? info.hwndActive : 0;
|
||||||
{
|
|
||||||
req->tid = GetCurrentThreadId();
|
|
||||||
if (!wine_server_call_err( req )) ret = wine_server_ptr_handle( reply->active );
|
|
||||||
}
|
|
||||||
SERVER_END_REQ;
|
|
||||||
return ret;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue