Michael Stefaniuc : explorerframe/tests: Use SetRect() instead of open coding it.
Module: wine Branch: master Commit: 6eb70eea1b2d4a8cfcacaf7c6eb4e8bda3a23ce7 URL: http://source.winehq.org/git/wine.git/?a=commit;h=6eb70eea1b2d4a8cfcacaf7c6e... Author: Michael Stefaniuc <mstefani(a)redhat.de> Date: Sat Jul 9 13:57:20 2016 +0200 explorerframe/tests: Use SetRect() instead of open coding it. Signed-off-by: Michael Stefaniuc <mstefani(a)redhat.de> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/explorerframe/tests/nstc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/explorerframe/tests/nstc.c b/dlls/explorerframe/tests/nstc.c index f8c44b6..83ee892 100644 --- a/dlls/explorerframe/tests/nstc.c +++ b/dlls/explorerframe/tests/nstc.c @@ -862,7 +862,7 @@ static void test_basics(void) process_msgs(); /* Initialize the control */ - rc.top = rc.left = 0; rc.right = rc.bottom = 200; + SetRect(&rc, 0, 0, 200, 200); hr = INameSpaceTreeControl_Initialize(pnstc, hwnd, &rc, 0); ok(hr == S_OK, "Got (0x%08x)\n", hr); @@ -1563,7 +1563,7 @@ static void test_basics(void) ok(hr == S_OK, "Got (0x%08x)\n", hr); /* GetItemRect */ - rc.top = rc.left = rc.bottom = rc.right = 0; + SetRectEmpty(&rc); if(0) { /* Crashes under win 7 */
participants (1)
-
Alexandre Julliard