mshtml/tests: Fix crash on win2000 testbot.

This commit is contained in:
Zhenbo Li 2015-08-22 21:18:16 +08:00 committed by Alexandre Julliard
parent 89d0c66461
commit f1c3f7ff1c
1 changed files with 3 additions and 0 deletions

View File

@ -805,6 +805,9 @@ static void test_async_xhr_abort(IHTMLDocument2 *doc, const char *xml_url)
trace("abort before send() is fired\n");
create_xmlhttprequest(doc);
if(!xhr)
return;
V_VT(&var) = VT_DISPATCH;
V_DISPATCH(&var) = (IDispatch*)&xmlhttprequest_onreadystatechange_obj;
hres = IHTMLXMLHttpRequest_put_onreadystatechange(xhr, var);