explorerframe/tests: Use SetRect() instead of open coding it.

Michael Stefaniuc mstefani at redhat.de
Sat Jul 9 06:57:20 CDT 2016


Signed-off-by: Michael Stefaniuc <mstefani at redhat.de>
---
 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 */
-- 
2.4.11



More information about the wine-patches mailing list