diff --git a/dlls/mshtml/tests/events.c b/dlls/mshtml/tests/events.c
index 28aa93c2891..908e6473803 100644
--- a/dlls/mshtml/tests/events.c
+++ b/dlls/mshtml/tests/events.c
@@ -384,7 +384,7 @@ static void _test_event_args(unsigned line, const IID *dispiid, DISPID id, WORD
if(pdp->cArgs > 1)
ok_(__FILE__,line) (V_VT(pdp->rgvarg+1) == VT_DISPATCH, "V_VT(rgvarg) = %d\n", V_VT(pdp->rgvarg+1));
ok_(__FILE__,line) (pvarRes != NULL, "pvarRes == NULL\n");
- ok_(__FILE__,line) (pei != NULL, "pei == NULL");
+ ok_(__FILE__,line) (pei != NULL, "pei == NULL\n");
ok_(__FILE__,line) (!pspCaller, "pspCaller != NULL\n");
if(dispiid)
diff --git a/dlls/mshtml/tests/xmlhttprequest.c b/dlls/mshtml/tests/xmlhttprequest.c
index df5d6449cdc..733987fce02 100644
--- a/dlls/mshtml/tests/xmlhttprequest.c
+++ b/dlls/mshtml/tests/xmlhttprequest.c
@@ -132,7 +132,7 @@ static void _test_event_args(unsigned line, const IID *dispiid, const IID *broke
pdp->rgdispidNamedArgs[0]);
ok_(__FILE__,line) (V_VT(pdp->rgvarg) == VT_DISPATCH, "V_VT(rgvarg) = %d\n", V_VT(pdp->rgvarg));
ok_(__FILE__,line) (pvarRes != NULL, "pvarRes == NULL\n");
- ok_(__FILE__,line) (pei != NULL, "pei == NULL");
+ ok_(__FILE__,line) (pei != NULL, "pei == NULL\n");
ok_(__FILE__,line) (!pspCaller, "pspCaller != NULL\n");
if(dispiid)