diff --git a/dlls/mshtml/tests/activex.c b/dlls/mshtml/tests/activex.c
index bf3e2e9a610..241342b6c6a 100644
--- a/dlls/mshtml/tests/activex.c
+++ b/dlls/mshtml/tests/activex.c
@@ -1281,6 +1281,7 @@ static void test_object_elem(IHTMLDocument2 *doc)
CHECK_CALLED(Invoke_SECURITYCTX);
hres = IHTMLObjectElement_QueryInterface(objelem, &IID_IDispatchEx, (void**)&dispex);
+ ok(hres == S_OK, "QueryInterface failed: %08x\n", hres);
test_elem_dispex(dispex);
IDispatchEx_Release(dispex);