diff --git a/dlls/mshtml/tests/protocol.c b/dlls/mshtml/tests/protocol.c
index 4e8b3d0c79a..b17028f992d 100644
--- a/dlls/mshtml/tests/protocol.c
+++ b/dlls/mshtml/tests/protocol.c
@@ -266,9 +266,13 @@ static void res_sec_url_cmp(LPCWSTR url, DWORD size, LPCWSTR file)
return;
}
+ SetLastError(0xdeadbeef);
len = SearchPathW(NULL, file, NULL, sizeof(buf)/sizeof(WCHAR), buf, NULL);
if(!len) {
- ok(0, "SearchPath failed: %u\n", GetLastError());
+ if (GetLastError() == ERROR_CALL_NOT_IMPLEMENTED)
+ win_skip("SearchPathW is not implemented\n");
+ else
+ ok(0, "SearchPath failed: %u\n", GetLastError());
return;
}