mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 12:19:49 +00:00
mshtml: Stop test crash on error condition.
This commit is contained in:
parent
996e5d62b8
commit
294fe6b65b
1 changed files with 4 additions and 0 deletions
|
@ -885,6 +885,9 @@ static void test_elem_col_item(IHTMLElementCollection *col, LPCWSTR n,
|
|||
hres = IDispatch_QueryInterface(disp, &IID_IHTMLElementCollection, (void**)&elcol);
|
||||
IDispatch_Release(disp);
|
||||
ok(hres == S_OK, "Could not get IHTMLElementCollection interface: %08x\n", hres);
|
||||
if(hres != S_OK)
|
||||
goto cleanup;
|
||||
|
||||
test_elem_collection(elcol, elem_types, len);
|
||||
IHTMLElementCollection_Release(elcol);
|
||||
|
||||
|
@ -916,6 +919,7 @@ static void test_elem_col_item(IHTMLElementCollection *col, LPCWSTR n,
|
|||
ok(hres == E_INVALIDARG, "item failed: %08x, expected E_INVALIDARG\n", hres);
|
||||
ok(disp == NULL, "disp != NULL\n");
|
||||
|
||||
cleanup:
|
||||
SysFreeString(V_BSTR(&name));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue