Commit 73a26fa4 authored by Adrian Thurston's avatar Adrian Thurston Committed by Alexandre Julliard

Do not set focus to a disabled window.

parent f2d99ee5
......@@ -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 )
......
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