From e1b6dc57ac1ac3b67e5844e7e635363d84dd352f Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Tue, 5 Feb 2013 13:09:43 +0100 Subject: [PATCH] winemac: Don't move off-screen windows to a random position. --- dlls/winemac.drv/window.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/dlls/winemac.drv/window.c b/dlls/winemac.drv/window.c index cb9ed9ac7a..9d639125a1 100644 --- a/dlls/winemac.drv/window.c +++ b/dlls/winemac.drv/window.c @@ -1398,7 +1398,11 @@ void macdrv_window_frame_changed(HWND hwnd, CGRect frame) if (!hwnd) return; if (!(data = get_win_data(hwnd))) return; - if (!data->on_screen) goto done; + if (!data->on_screen) + { + release_win_data(data); + return; + } /* Get geometry */ @@ -1427,7 +1431,6 @@ void macdrv_window_frame_changed(HWND hwnd, CGRect frame) TRACE("%p resizing from (%dx%d) to (%dx%d)\n", hwnd, data->window_rect.right - data->window_rect.left, data->window_rect.bottom - data->window_rect.top, width, height); -done: release_win_data(data); if (!(flags & SWP_NOSIZE) || !(flags & SWP_NOMOVE))