--- trunk/reactos/subsys/win32k/ntuser/winpos.c 2005-09-10 08:01:19 UTC (rev 17770)
+++ trunk/reactos/subsys/win32k/ntuser/winpos.c 2005-09-10 08:22:03 UTC (rev 17771)
@@ -361,8 +361,8 @@
case SW_MAXIMIZE:
{
- co_WinPosGetMinMaxInfo(Window, &Size, &InternalPos->MaxPos,
- NULL, NULL);
+ co_WinPosGetMinMaxInfo(Window, NULL, &InternalPos->MaxPos,
+ NULL, &Size);
DPRINT("Maximize: %d,%d %dx%d\n",
InternalPos->MaxPos.x, InternalPos->MaxPos.y, Size.x, Size.y);
if (Window->Style & WS_MINIMIZE)
@@ -382,8 +382,8 @@
Window->Style &= ~WS_MINIMIZE;
if (Window->Flags & WINDOWOBJECT_RESTOREMAX)
{
- co_WinPosGetMinMaxInfo(Window, &Size,
- &InternalPos->MaxPos, NULL, NULL);
+ co_WinPosGetMinMaxInfo(Window, NULL,
+ &InternalPos->MaxPos, NULL, &Size);
Window->Style |= WS_MAXIMIZE;
IntGdiSetRect(NewPos, InternalPos->MaxPos.x,
InternalPos->MaxPos.y, Size.x, Size.y);
@@ -437,8 +437,8 @@
Info->ptMaxTrackSize.y = Info->ptMaxSize.y;
IntGetWindowBorderMeasures(Window, &XInc, &YInc);
- Info->ptMaxSize.x += 2 * XInc;
- Info->ptMaxSize.y += 2 * YInc;
+ Info->ptMaxTrackSize.x += 2 * XInc;
+ Info->ptMaxTrackSize.y += 2 * YInc;
if (Window->InternalPos != NULL)
{