Michael Stefaniuc : shell32/tests: Use SetRectEmpty() instead of open coding it.

Alexandre Julliard julliard at wine.codeweavers.com
Thu Mar 3 11:39:44 CST 2016


Module: wine
Branch: master
Commit: fba64b5cacc58e28a7dd83c96be1daef2e136aa1
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=fba64b5cacc58e28a7dd83c96be1daef2e136aa1

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Thu Mar  3 10:00:18 2016 +0100

shell32/tests: Use SetRectEmpty() instead of open coding it.

Signed-off-by: Michael Stefaniuc <mstefani at redhat.de>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/shell32/tests/ebrowser.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/shell32/tests/ebrowser.c b/dlls/shell32/tests/ebrowser.c
index 7a01d56..3b22ffb 100644
--- a/dlls/shell32/tests/ebrowser.c
+++ b/dlls/shell32/tests/ebrowser.c
@@ -881,7 +881,7 @@ static void test_initialization(void)
 
     /* empty rectangle */
     ebrowser_instantiate(&peb);
-    rc.left = 0; rc.top = 0; rc.right = 0; rc.bottom = 0;
+    SetRectEmpty(&rc);
     hr = IExplorerBrowser_Initialize(peb, hwnd, &rc, NULL);
     ok(hr == S_OK, "got (0x%08x)\n", hr);
     IExplorerBrowser_Destroy(peb);
@@ -1101,7 +1101,7 @@ static void test_basics(void)
     ebrowser_initialize(peb);
 
     /* SetRect */
-    rc.left = 0; rc.top = 0; rc.right = 0; rc.bottom = 0;
+    SetRectEmpty(&rc);
     hr = IExplorerBrowser_SetRect(peb, NULL, rc);
     ok(hr == S_OK, "got (0x%08x)\n", hr);
 




More information about the wine-cvs mailing list