mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 12:19:49 +00:00
Do not set focus to a disabled window.
This commit is contained in:
parent
f2d99ee56a
commit
73a26fa4da
1 changed files with 3 additions and 0 deletions
|
@ -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 )
|
||||
|
|
Loading…
Reference in a new issue