ieframe/tests: Avoid crash on missing IID_IWebBrowser2 interface.

Signed-off-by: Marcus Meissner <marcus@jet.franken.de>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Marcus Meissner 2017-11-03 18:02:50 +01:00 committed by Alexandre Julliard
parent 1d7e48a522
commit afbd598ac1
1 changed files with 6 additions and 2 deletions

View File

@ -260,10 +260,14 @@ static void test_InternetExplorer(void)
if(hres != S_OK)
return;
advise_cp(unk, TRUE);
hres = IUnknown_QueryInterface(unk, &IID_IWebBrowser2, (void**)&wb);
ok(hres == S_OK, "Could not get IWebBrowser2 interface: %08x\n", hres);
if (hres != S_OK) {
IUnknown_Release(unk);
return;
}
advise_cp(unk, TRUE);
test_visible(wb);
test_html_window(wb);