Commit 11484a0f authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Check return value of SetText.

Spotted by Gerald Pfeifer.
parent c0890590
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment