mshtml: Check return value of SetText.
Spotted by Gerald Pfeifer.
This commit is contained in:
parent
c0890590ab
commit
11484a0f68
|
@ -434,6 +434,10 @@ static HRESULT WINAPI HTMLBodyElement_put_text(IHTMLBodyElement *iface, VARIANT
|
|||
|
||||
nsres = nsIDOMHTMLBodyElement_SetText(This->nsbody, &text);
|
||||
nsAString_Finish(&text);
|
||||
if(NS_FAILED(nsres)) {
|
||||
ERR("SetText failed: %08x\n", nsres);
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue