From 6eb70eea1b2d4a8cfcacaf7c6eb4e8bda3a23ce7 Mon Sep 17 00:00:00 2001 From: Michael Stefaniuc Date: Sat, 9 Jul 2016 13:57:20 +0200 Subject: [PATCH] explorerframe/tests: Use SetRect() instead of open coding it. Signed-off-by: Michael Stefaniuc Signed-off-by: Alexandre Julliard --- 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 f8c44b6df83..83ee89237c9 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 */