user32: Fixed maxPosition for thick childs.

Florian Köberle florian at fkoeberle.de
Sun Nov 16 10:03:22 CST 2008


---
 dlls/user32/tests/win.c |    7 +++----
 dlls/user32/winpos.c    |    4 ++--
 2 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/dlls/user32/tests/win.c b/dlls/user32/tests/win.c
index 92284f1..69461c3 100644
--- a/dlls/user32/tests/win.c
+++ b/dlls/user32/tests/win.c
@@ -5151,10 +5151,9 @@ static LRESULT WINAPI test_thick_child_size_winproc(HWND hwnd, UINT msg, WPARAM
             expectedPosY = expectedPosX;
             actualPosX = minmax->ptMaxPosition.x;
             actualPosY = minmax->ptMaxPosition.y;
-            todo_wine
-                ok(actualPosX == expectedPosX && actualPosY == expectedPosY,
-                    "expected maxPosition (%d/%d), actual maxPosition (%d/%d)\n",
-                    expectedPosX, expectedPosY, actualPosX, actualPosY);
+            ok(actualPosX == expectedPosX && actualPosY == expectedPosY,
+                "expected maxPosition (%d/%d), actual maxPosition (%d/%d)\n",
+                expectedPosX, expectedPosY, actualPosX, actualPosY);
             break;
         }
     }
diff --git a/dlls/user32/winpos.c b/dlls/user32/winpos.c
index 8892ecf..1a92be7 100644
--- a/dlls/user32/winpos.c
+++ b/dlls/user32/winpos.c
@@ -684,8 +684,8 @@ void WINPOS_GetMinMaxInfo( HWND hwnd, POINT *maxSize, POINT *maxPos,
         MinMax.ptMinTrackSize.y = 2*yinc;
         MinMax.ptMaxTrackSize.x = GetSystemMetrics(SM_CXMAXTRACK);
         MinMax.ptMaxTrackSize.y = GetSystemMetrics(SM_CYMAXTRACK);
-        MinMax.ptMaxPosition.x = 0;
-        MinMax.ptMaxPosition.y = 0;
+        MinMax.ptMaxPosition.x = -xinc;
+        MinMax.ptMaxPosition.y = -yinc;
     }
     else
     {
-- 
1.5.4.3


--------------010301080101050802060101--



More information about the wine-patches mailing list