From: Dmitry Timoshkov <dmitry@baikal.ru> Wine-Bug: http://bugs.winehq.org/show_bug.cgi?id=59361 Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru> --- dlls/user32/mdi.c | 2 +- dlls/user32/tests/win.c | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/dlls/user32/mdi.c b/dlls/user32/mdi.c index 11c7f98081f..d19990fbdb0 100644 --- a/dlls/user32/mdi.c +++ b/dlls/user32/mdi.c @@ -469,7 +469,7 @@ static void MDI_SwitchActiveChild( MDICLIENTINFO *ci, HWND hwndTo, BOOL activate { BOOL was_zoomed = IsZoomed(hwndPrev); - if (was_zoomed) + if (was_zoomed && (GetWindowLongW( hwndTo, GWL_STYLE ) & WS_MAXIMIZEBOX)) { /* restore old MDI child */ SendMessageW( hwndPrev, WM_SETREDRAW, FALSE, 0 ); diff --git a/dlls/user32/tests/win.c b/dlls/user32/tests/win.c index d4549594c6f..135b11ddac4 100644 --- a/dlls/user32/tests/win.c +++ b/dlls/user32/tests/win.c @@ -8408,7 +8408,6 @@ static void test_ShowWindow_mdichild(void) ok(!(style & WS_DISABLED), "window should not be disabled\n"); ok(style & WS_VISIBLE, "window should be visible\n"); ok(!(style & WS_MINIMIZE), "window should not be minimized\n"); - todo_wine ok(!(style & WS_MAXIMIZE), "window should not be maximized\n"); DestroyWindow(hwnd2); -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/10127