comctl32/tests: Use SetRectEmpty() instead of SetRect().

Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Michael Stefaniuc 2016-07-30 21:57:40 +02:00 committed by Alexandre Julliard
parent 61a6f98a9e
commit b9f552cbec
1 changed files with 2 additions and 2 deletions

View File

@ -1028,7 +1028,7 @@ static void test_margin(void)
ret = SendMessageA(hwnd, TTM_SETMARGIN, 0, (LPARAM)&r); ret = SendMessageA(hwnd, TTM_SETMARGIN, 0, (LPARAM)&r);
ok(!ret, "got %d\n", ret); ok(!ret, "got %d\n", ret);
SetRect(&r1, 0, 0, 0, 0); SetRectEmpty(&r1);
ret = SendMessageA(hwnd, TTM_GETMARGIN, 0, (LPARAM)&r1); ret = SendMessageA(hwnd, TTM_GETMARGIN, 0, (LPARAM)&r1);
ok(!ret, "got %d\n", ret); ok(!ret, "got %d\n", ret);
ok(EqualRect(&r, &r1), "got %s, was %s\n", wine_dbgstr_rect(&r1), wine_dbgstr_rect(&r)); ok(EqualRect(&r, &r1), "got %s, was %s\n", wine_dbgstr_rect(&r1), wine_dbgstr_rect(&r));
@ -1036,7 +1036,7 @@ static void test_margin(void)
ret = SendMessageA(hwnd, TTM_SETMARGIN, 0, 0); ret = SendMessageA(hwnd, TTM_SETMARGIN, 0, 0);
ok(!ret, "got %d\n", ret); ok(!ret, "got %d\n", ret);
SetRect(&r1, 0, 0, 0, 0); SetRectEmpty(&r1);
ret = SendMessageA(hwnd, TTM_GETMARGIN, 0, (LPARAM)&r1); ret = SendMessageA(hwnd, TTM_GETMARGIN, 0, (LPARAM)&r1);
ok(!ret, "got %d\n", ret); ok(!ret, "got %d\n", ret);
ok(EqualRect(&r, &r1), "got %s, was %s\n", wine_dbgstr_rect(&r1), wine_dbgstr_rect(&r)); ok(EqualRect(&r, &r1), "got %s, was %s\n", wine_dbgstr_rect(&r1), wine_dbgstr_rect(&r));