mirror of
https://github.com/reactos/wine.git
synced 2024-11-24 20:30:01 +00:00
ieframe/tests: Don't crash if IWebBrowser2_get_LocationURL() fails.
This commit is contained in:
parent
9fe25eae4a
commit
19e2c1578e
@ -230,9 +230,12 @@ static void _test_LocationURL(unsigned line, IUnknown *unk, const char *exurl)
|
||||
|
||||
hres = IWebBrowser2_get_LocationURL(wb, &url);
|
||||
ok_(__FILE__,line) (hres == (*exurl ? S_OK : S_FALSE), "get_LocationURL failed: %08x\n", hres);
|
||||
ok_(__FILE__,line) (!strcmp_wa(url, exurl), "unexpected URL: %s\n", wine_dbgstr_w(url));
|
||||
if (hres == S_OK)
|
||||
{
|
||||
ok_(__FILE__,line) (!strcmp_wa(url, exurl), "unexpected URL: %s\n", wine_dbgstr_w(url));
|
||||
SysFreeString(url);
|
||||
}
|
||||
|
||||
SysFreeString(url);
|
||||
IWebBrowser2_Release(wb);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user