Michael Stefaniuc : mshtml/tests: Get rid of wstr_contains().
Alexandre Julliard
julliard at winehq.org
Wed Feb 12 16:21:05 CST 2020
Module: wine
Branch: master
Commit: 3f2830974175b7577b40316170e3adea096ab690
URL: https://source.winehq.org/git/wine.git/?a=commit;h=3f2830974175b7577b40316170e3adea096ab690
Author: Michael Stefaniuc <mstefani at winehq.org>
Date: Wed Feb 12 00:25:17 2020 +0100
mshtml/tests: Get rid of wstr_contains().
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/mshtml/tests/htmldoc.c | 9 +--------
1 file changed, 1 insertion(+), 8 deletions(-)
diff --git a/dlls/mshtml/tests/htmldoc.c b/dlls/mshtml/tests/htmldoc.c
index f8cb0c1278..e473ee0f21 100644
--- a/dlls/mshtml/tests/htmldoc.c
+++ b/dlls/mshtml/tests/htmldoc.c
@@ -283,13 +283,6 @@ static const WCHAR wszTimesNewRoman[] =
static const WCHAR wszArial[] =
{'A','r','i','a','l',0};
-static BOOL wstr_contains(const WCHAR *strw, const char *stra)
-{
- CHAR buf[512];
- WideCharToMultiByte(CP_ACP, 0, strw, -1, buf, sizeof(buf), NULL, NULL);
- return strstr(buf, stra) != NULL;
-}
-
/* Returns true if the user interface is in English. Note that this does not
* presume of the formatting of dates, numbers, etc.
*/
@@ -3484,7 +3477,7 @@ static HRESULT WINAPI DocObjectService_FireBeforeNavigate2(IDocObjectService *i
}else {
ok(cbPostData == 9, "cbPostData = %d\n", cbPostData);
ok(!memcmp(pPostData, "cmd=TEST", cbPostData), "pPostData = %p\n", pPostData);
- ok(wstr_contains(lpszHeaders, "Content-Type: application/x-www-form-urlencoded\r\n"),
+ ok(wcsstr(lpszHeaders, L"Content-Type: application/x-www-form-urlencoded\r\n") != NULL,
"lpszHeaders = %s\n", wine_dbgstr_w(lpszHeaders));
}
More information about the wine-cvs
mailing list