Fix the case where child=0 (last child) in MDI_ChildActivate.

This commit is contained in:
Gerard Patel 2001-10-15 18:00:09 +00:00 committed by Alexandre Julliard
parent 8fd26b9134
commit 1e8b025423

View File

@ -730,7 +730,7 @@ static LONG MDI_ChildActivate( HWND client, HWND child )
HWND prevActiveWnd = clientInfo->hwndActiveChild;
BOOL isActiveFrameWnd;
if (!IsWindowEnabled( child )) return 0;
if (child && (!IsWindowEnabled( child ))) return 0;
/* Don't activate if it is already active. Might happen
since ShowWindow DOES activate MDI children */