Jacek Caban : mshtml: Check return value of SetText.
Module: wine Branch: master Commit: 11484a0f68a1052decae76630d883265a520f2a4 URL: http://source.winehq.org/git/wine.git/?a=commit;h=11484a0f68a1052decae76630d... Author: Jacek Caban <jacek(a)codeweavers.com> Date: Sat May 8 18:33:52 2010 +0200 mshtml: Check return value of SetText. Spotted by Gerald Pfeifer. --- dlls/mshtml/htmlbody.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/dlls/mshtml/htmlbody.c b/dlls/mshtml/htmlbody.c index e4bb1d0..18a6041 100644 --- a/dlls/mshtml/htmlbody.c +++ b/dlls/mshtml/htmlbody.c @@ -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; }
participants (1)
-
Alexandre Julliard