Jason Edmeades : user32: Correct trace to log calculated values rather than uninitialized ones.

Alexandre Julliard julliard at wine.codeweavers.com
Tue Jul 24 07:06:08 CDT 2007


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

Author: Jason Edmeades <jason.edmeades at googlemail.com>
Date:   Mon Jul 23 22:59:45 2007 +0100

user32: Correct trace to log calculated values rather than uninitialized ones.

---

 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 51dd405..a269292 100644
--- a/dlls/user32/mdi.c
+++ b/dlls/user32/mdi.c
@@ -726,10 +726,11 @@ static LONG MDICascade( HWND client, MDICLIENTINFO *ci )
         /* walk the list (backwards) and move windows */
         for (i = total - 1; i >= 0; i--)
         {
+
+            MDI_CalcDefaultChildPos(client, n++, pos, delta, NULL);
             TRACE("move %p to (%d,%d) size [%d,%d]\n",
                   win_array[i], pos[0].x, pos[0].y, pos[1].x, pos[1].y);
 
-            MDI_CalcDefaultChildPos(client, n++, pos, delta, NULL);
             SetWindowPos( win_array[i], 0, pos[0].x, pos[0].y, pos[1].x, pos[1].y,
                           SWP_DRAWFRAME | SWP_NOACTIVATE | SWP_NOZORDER);
         }




More information about the wine-cvs mailing list