[PATCH] MDI_ChildActivate for last child

Gerard Patel gerard.patel at nerim.net
Fri Oct 12 20:48:35 CDT 2001


ChangeLog:

	* window/mdi.c
               Fix the case where child=0 (last child) in MDI_ChildActivate
-------------- next part --------------
Index: windows/mdi.c
===================================================================
RCS file: /home/wine/wine/windows/mdi.c,v
retrieving revision 1.88
diff -u -r1.88 mdi.c
--- windows/mdi.c	2001/09/19 22:33:01	1.88
+++ windows/mdi.c	2001/10/12 22:26:01
@@ -725,7 +725,7 @@
     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 */
-------------- next part --------------



More information about the wine-patches mailing list