mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-14 19:55:40 +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;
|
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 */
|
/* Retrieve the message queue associated with this window */
|
||||||
pMsgQ = (MESSAGEQUEUE *)QUEUE_Lock( wndPtr->hmemTaskQ );
|
pMsgQ = (MESSAGEQUEUE *)QUEUE_Lock( wndPtr->hmemTaskQ );
|
||||||
if ( !pMsgQ )
|
if ( !pMsgQ )
|
||||||
|
|
Loading…
Reference in a new issue