Skip to content
Snippets Groups Projects
Commit 73a26fa4 authored by Adrian Thurston's avatar Adrian Thurston Committed by Alexandre Julliard
Browse files

Do not set focus to a disabled window.

parent f2d99ee5
No related branches found
No related tags found
No related merge requests found
......@@ -95,6 +95,9 @@ HWND WINAPI SetFocus( HWND hwnd )
hwndTop = wndPtr->hwndSelf;
}
/* definitely at the top window now */
if ( wndPtr->dwStyle & ( WS_MINIMIZE | WS_DISABLED) ) goto CLEANUP;
/* Retrieve the message queue associated with this window */
pMsgQ = (MESSAGEQUEUE *)QUEUE_Lock( wndPtr->hmemTaskQ );
if ( !pMsgQ )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment