shell32/tests: Use SetRectEmpty() instead of open coding it.
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
3a74fd3f72
commit
fba64b5cac
|
@ -881,7 +881,7 @@ static void test_initialization(void)
|
||||||
|
|
||||||
/* empty rectangle */
|
/* empty rectangle */
|
||||||
ebrowser_instantiate(&peb);
|
ebrowser_instantiate(&peb);
|
||||||
rc.left = 0; rc.top = 0; rc.right = 0; rc.bottom = 0;
|
SetRectEmpty(&rc);
|
||||||
hr = IExplorerBrowser_Initialize(peb, hwnd, &rc, NULL);
|
hr = IExplorerBrowser_Initialize(peb, hwnd, &rc, NULL);
|
||||||
ok(hr == S_OK, "got (0x%08x)\n", hr);
|
ok(hr == S_OK, "got (0x%08x)\n", hr);
|
||||||
IExplorerBrowser_Destroy(peb);
|
IExplorerBrowser_Destroy(peb);
|
||||||
|
@ -1101,7 +1101,7 @@ static void test_basics(void)
|
||||||
ebrowser_initialize(peb);
|
ebrowser_initialize(peb);
|
||||||
|
|
||||||
/* SetRect */
|
/* SetRect */
|
||||||
rc.left = 0; rc.top = 0; rc.right = 0; rc.bottom = 0;
|
SetRectEmpty(&rc);
|
||||||
hr = IExplorerBrowser_SetRect(peb, NULL, rc);
|
hr = IExplorerBrowser_SetRect(peb, NULL, rc);
|
||||||
ok(hr == S_OK, "got (0x%08x)\n", hr);
|
ok(hr == S_OK, "got (0x%08x)\n", hr);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue