diff --git a/dlls/mshtml/tests/winetest.js b/dlls/mshtml/tests/winetest.js
index 7e8cbfc9b2c..6d99adf12b2 100644
--- a/dlls/mshtml/tests/winetest.js
+++ b/dlls/mshtml/tests/winetest.js
@@ -23,10 +23,11 @@ function guard(f) {
}catch(e) {
var msg = "Got exception ";
if(e && typeof(e) == "object" && "message")
- msg += e.msg;
+ msg += e.message;
else
msg += e;
ok(false, msg);
+ if("tests" in window) next_test();
}
};
}