Fixed an error when an owned window activates its owner during

creation.
This commit is contained in:
Rein Klazes 1998-10-15 13:03:10 +00:00 committed by Alexandre Julliard
parent 1ffe652cd1
commit bbf2efe38e

View file

@ -1640,6 +1640,7 @@ BOOL32 WINPOS_ChangeActiveWindow( HWND32 hWnd, BOOL32 mouseMsg )
/* owned popups imply owner activation - not sure */
if ((wndPtr->dwStyle & WS_POPUP) && wndPtr->owner &&
(wndPtr->owner->dwStyle & WS_VISIBLE ) &&
!(wndPtr->owner->dwStyle & WS_DISABLED ))
{
if (!(wndPtr = wndPtr->owner)) return FALSE;