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>
This commit is contained in:
Michael Stefaniuc 2016-05-03 11:08:55 +02:00 committed by Alexandre Julliard
parent 75059e9ee1
commit 365e2e9dbc
1 changed files with 1 additions and 4 deletions

View File

@ -963,10 +963,7 @@ static void test_wmp(void)
test_window(hwnd); test_window(hwnd);
pos.left = 1; SetRect(&pos, 1, 2, 301, 312);
pos.top = 2;
pos.right = 301;
pos.bottom = 312;
hres = IOleInPlaceObject_SetObjectRects(ipobj, &pos, &pos); hres = IOleInPlaceObject_SetObjectRects(ipobj, &pos, &pos);
ok(hres == S_OK, "SetObjectRects failed: %08x\n", hres); ok(hres == S_OK, "SetObjectRects failed: %08x\n", hres);
GetClientRect(hwnd, &pos); GetClientRect(hwnd, &pos);