Michael Stefaniuc : comctl32/tests: Use SetRectEmpty() instead of SetRect( ).
Alexandre Julliard
julliard at winehq.org
Mon Aug 1 16:48:56 CDT 2016
Module: wine
Branch: master
Commit: b9f552cbec66b524b702f265fe08a5ff68db050e
URL: http://source.winehq.org/git/wine.git/?a=commit;h=b9f552cbec66b524b702f265fe08a5ff68db050e
Author: Michael Stefaniuc <mstefani at redhat.de>
Date: Sat Jul 30 21:57:40 2016 +0200
comctl32/tests: Use SetRectEmpty() instead of SetRect().
Signed-off-by: Michael Stefaniuc <mstefani at redhat.de>
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/comctl32/tests/tooltips.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/comctl32/tests/tooltips.c b/dlls/comctl32/tests/tooltips.c
index feb74ad..3d5ca9a 100644
--- a/dlls/comctl32/tests/tooltips.c
+++ b/dlls/comctl32/tests/tooltips.c
@@ -1028,7 +1028,7 @@ static void test_margin(void)
ret = SendMessageA(hwnd, TTM_SETMARGIN, 0, (LPARAM)&r);
ok(!ret, "got %d\n", ret);
- SetRect(&r1, 0, 0, 0, 0);
+ SetRectEmpty(&r1);
ret = SendMessageA(hwnd, TTM_GETMARGIN, 0, (LPARAM)&r1);
ok(!ret, "got %d\n", ret);
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);
ok(!ret, "got %d\n", ret);
- SetRect(&r1, 0, 0, 0, 0);
+ SetRectEmpty(&r1);
ret = SendMessageA(hwnd, TTM_GETMARGIN, 0, (LPARAM)&r1);
ok(!ret, "got %d\n", ret);
ok(EqualRect(&r, &r1), "got %s, was %s\n", wine_dbgstr_rect(&r1), wine_dbgstr_rect(&r));
More information about the wine-cvs
mailing list