Alexandre Julliard : winemac: Don' t move off-screen windows to a random position.
Alexandre Julliard
julliard at winehq.org
Tue Feb 5 13:25:26 CST 2013
Module: wine
Branch: master
Commit: e1b6dc57ac1ac3b67e5844e7e635363d84dd352f
URL: http://source.winehq.org/git/wine.git/?a=commit;h=e1b6dc57ac1ac3b67e5844e7e635363d84dd352f
Author: Alexandre Julliard <julliard at winehq.org>
Date: Tue Feb 5 13:09:43 2013 +0100
winemac: Don't move off-screen windows to a random position.
---
dlls/winemac.drv/window.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/dlls/winemac.drv/window.c b/dlls/winemac.drv/window.c
index cb9ed9a..9d63912 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))
More information about the wine-cvs
mailing list