mshtml: Check return value of SetText.

Spotted by Gerald Pfeifer.
This commit is contained in:
Jacek Caban 2010-05-08 18:33:52 +02:00 committed by Alexandre Julliard
parent c0890590ab
commit 11484a0f68
1 changed files with 4 additions and 0 deletions

View File

@ -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;
}