mirror of
git://source.winehq.org/git/wine.git
synced 2024-08-31 16:53:37 +00:00
Do not set focus to a disabled window.
This commit is contained in:
parent
f2d99ee56a
commit
73a26fa4da
|
@ -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