Ken Thomases : winemac: Always trace arguments in macdrv_ShowWindow().

Alexandre Julliard julliard at winehq.org
Wed Aug 21 14:09:05 CDT 2013


Module: wine
Branch: master
Commit: 251160fef9873ca17d559d9a429bea30ccb49578
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=251160fef9873ca17d559d9a429bea30ccb49578

Author: Ken Thomases <ken at codeweavers.com>
Date:   Tue Aug 20 17:00:51 2013 -0500

winemac: Always trace arguments in macdrv_ShowWindow().

---

 dlls/winemac.drv/window.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/dlls/winemac.drv/window.c b/dlls/winemac.drv/window.c
index e7dd9b1..c4da870 100644
--- a/dlls/winemac.drv/window.c
+++ b/dlls/winemac.drv/window.c
@@ -1026,6 +1026,9 @@ UINT CDECL macdrv_ShowWindow(HWND hwnd, INT cmd, RECT *rect, UINT swp)
     struct macdrv_win_data *data = get_win_data(hwnd);
     CGRect frame;
 
+    TRACE("win %p/%p cmd %d at %s flags %08x\n",
+          hwnd, data ? data->cocoa_window : NULL, cmd, wine_dbgstr_rect(rect), swp);
+
     if (!data || !data->cocoa_window) goto done;
     if (IsRectEmpty(rect)) goto done;
     if (GetWindowLongW(hwnd, GWL_STYLE) & WS_MINIMIZE)
@@ -1049,9 +1052,6 @@ UINT CDECL macdrv_ShowWindow(HWND hwnd, INT cmd, RECT *rect, UINT swp)
         thread_data->current_event->type != WINDOW_DID_UNMINIMIZE)
         goto done;
 
-    TRACE("win %p/%p cmd %d at %s flags %08x\n",
-          hwnd, data->cocoa_window, cmd, wine_dbgstr_rect(rect), swp);
-
     macdrv_get_cocoa_window_frame(data->cocoa_window, &frame);
     *rect = rect_from_cgrect(frame);
     macdrv_mac_to_window_rect(data, rect);




More information about the wine-cvs mailing list