Commit 1e8b0254 authored by Gerard Patel's avatar Gerard Patel Committed by Alexandre Julliard

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

parent 8fd26b91
......@@ -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 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment