diff --git a/dlls/urlmon/tests/protocol.c b/dlls/urlmon/tests/protocol.c
index 5a403557af7bcf5d4f7bd7abe747b13aef4a2a57..2f46b5dea7d9fbbfed066e3c4f119abf8dc7793b 100644
--- a/dlls/urlmon/tests/protocol.c
+++ b/dlls/urlmon/tests/protocol.c
@@ -270,7 +270,9 @@ static HRESULT WINAPI ProtocolSink_ReportProgress(IInternetProtocolSink *iface,
             if(tested_protocol == BIND_TEST)
                 ok(szStatusText == expect_wsz, "unexpected szStatusText\n");
             else
-                ok(!lstrcmpW(szStatusText, text_html), "szStatusText != text/html\n");
+                ok(lstrlenW(text_html) <= lstrlenW(szStatusText) &&
+                   !memcmp(szStatusText, text_html, lstrlenW(text_html)*sizeof(WCHAR)),
+                   "szStatusText != text/html\n");
         }
         break;
     case BINDSTATUS_DIRECTBIND: