user32: Make sure that we send proper notifications in all cases
dmitry at codeweavers.com
Fri May 9 23:08:43 CDT 2008
this patch fixes a regression in Access 2000 leading to a crash on database
close. The regression has been introduced by
d57dc9da0a88a941204b75b0d5e41e04d547fc2b is first bad commit
Author: Dmitry Timoshkov <dmitry at codeweavers.com>
Date: Thu Jan 4 22:32:05 2007 +0800
user32: Fix some failures in the MDI message test.
The problem is that the app doesn't receive a notification that an active
MDI child has gone, and tries to fiddle with destroyed data.
user32: Make sure that we send proper notifications in all cases.
dlls/user32/mdi.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/dlls/user32/mdi.c b/dlls/user32/mdi.c
index 60297b0..0594b55 100644
@@ -570,7 +570,8 @@ static LRESULT MDIDestroyChild( HWND client, MDICLIENTINFO *ci,
ci->hwndChildMaximized = 0;
MDI_UpdateFrameText(frame, client, TRUE, NULL);
- if (flagDestroy) ci->hwndActiveChild = 0;
+ if (flagDestroy)
+ MDI_ChildActivate(client, 0);
More information about the wine-patches