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

This commit is contained in:
Jason Edmeades 2007-07-23 22:59:45 +01:00 committed by Alexandre Julliard
parent cee98d2969
commit 1c07a97ffd
1 changed files with 2 additions and 1 deletions

View File

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