Module: wine Branch: master Commit: 365e2e9dbc7e8d4b164ef23291dd149493b7fcc6 URL: http://source.winehq.org/git/wine.git/?a=commit;h=365e2e9dbc7e8d4b164ef23291...
Author: Michael Stefaniuc mstefani@redhat.de Date: Tue May 3 11:08:55 2016 +0200
wmp/tests: Use SetRect() instead of open coding it.
Signed-off-by: Michael Stefaniuc mstefani@redhat.de Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/wmp/tests/oleobj.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/dlls/wmp/tests/oleobj.c b/dlls/wmp/tests/oleobj.c index cc2f4fe..971a2fe 100644 --- a/dlls/wmp/tests/oleobj.c +++ b/dlls/wmp/tests/oleobj.c @@ -963,10 +963,7 @@ static void test_wmp(void)
test_window(hwnd);
- pos.left = 1; - pos.top = 2; - pos.right = 301; - pos.bottom = 312; + SetRect(&pos, 1, 2, 301, 312); hres = IOleInPlaceObject_SetObjectRects(ipobj, &pos, &pos); ok(hres == S_OK, "SetObjectRects failed: %08x\n", hres); GetClientRect(hwnd, &pos);