msxml3: Check return value (Coverity).

oldstable
Nikolay Sivov 2012-11-28 13:15:29 -05:00 committed by Alexandre Julliard
parent b2643d3841
commit cf8564a992
1 changed files with 3 additions and 1 deletions

View File

@ -123,9 +123,11 @@ static HRESULT WINAPI HTMLEvents_Invoke(IDispatch *iface, DISPID dispIdMember, R
{
if(dispIdMember == DISPID_HTMLDOCUMENTEVENTS2_ONREADYSTATECHANGE) {
static const WCHAR completeW[] = {'c','o','m','p','l','e','t','e',0};
HRESULT hr;
BSTR state;
IHTMLDocument2_get_readyState(html_doc, &state);
hr = IHTMLDocument2_get_readyState(html_doc, &state);
ok(hr == S_OK, "got 0x%08x\n", hr);
if(!memcmp(state, completeW, sizeof(completeW)))
loaded = TRUE;
}