diff --git a/dlls/mshtml/tests/script.c b/dlls/mshtml/tests/script.c
index f9aafbb50b7..761d440748b 100644
--- a/dlls/mshtml/tests/script.c
+++ b/dlls/mshtml/tests/script.c
@@ -1832,6 +1832,7 @@ static void test_nextdispid(IDispatchEx *dispex)
V_VT(&var) = VT_EMPTY;
hres = dispex_propput(dispex, dyn_id, 0, &var);
+ ok(hres == S_OK, "dispex_propput failed: %08x\n", hres);
while(last_id != dyn_id) {
hres = IDispatchEx_GetNextDispID(dispex, fdexEnumAll, last_id, &id);