Module: wine Branch: master Commit: 413e27eff1cdf55e8f05e61cf465f699b386555e URL: http://source.winehq.org/git/wine.git/?a=commit;h=413e27eff1cdf55e8f05e61cf4...
Author: Alexandre Julliard julliard@winehq.org Date: Mon Mar 13 19:34:23 2017 +0100
user32/tests: Re-enable a test about window positions.
Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/user32/tests/win.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/dlls/user32/tests/win.c b/dlls/user32/tests/win.c index 70c1370..6e11ff2 100644 --- a/dlls/user32/tests/win.c +++ b/dlls/user32/tests/win.c @@ -805,10 +805,7 @@ static LRESULT WINAPI main_window_procA(HWND hwnd, UINT msg, WPARAM wparam, LPAR GetWindowRect(hwnd, &rc1); SetRect(&rc2, winpos->x, winpos->y, winpos->x + winpos->cx, winpos->y + winpos->cy); /* note: winpos coordinates are relative to parent */ - MapWindowPoints(GetParent(hwnd), 0, (LPPOINT)&rc2, 2); - if (0) - { - /* Uncomment this once the test succeeds in all cases */ + MapWindowPoints(GetAncestor(hwnd,GA_PARENT), 0, (LPPOINT)&rc2, 2); ok(EqualRect(&rc1, &rc2), "rects do not match %s / %s\n", wine_dbgstr_rect(&rc1), wine_dbgstr_rect(&rc2));
@@ -817,7 +814,6 @@ static LRESULT WINAPI main_window_procA(HWND hwnd, UINT msg, WPARAM wparam, LPAR MapWindowPoints(0, hwnd, (LPPOINT)&rc1, 2); ok(EqualRect(&rc1, &rc2), "rects do not match %s / %s\n", wine_dbgstr_rect(&rc1), wine_dbgstr_rect(&rc2)); - } break; } case WM_NCCREATE: