From 70644be9df31adcfd883dc3758a2e7d81778d783 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Sun, 26 Jan 2020 10:52:08 +0100 Subject: [PATCH] mlang/tests: Get rid of strstrW(). Signed-off-by: Alexandre Julliard --- dlls/mlang/tests/mlang.c | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/dlls/mlang/tests/mlang.c b/dlls/mlang/tests/mlang.c index b5d6fc61143..d3a71e935d6 100644 --- a/dlls/mlang/tests/mlang.c +++ b/dlls/mlang/tests/mlang.c @@ -1294,19 +1294,6 @@ static void IMLangFontLink_Test(IMLangFontLink* iMLFL) ok(processed == 0, "expected 0, got %d\n", processed); } -/* copied from libs/wine/string.c */ -static WCHAR *strstrW(const WCHAR *str, const WCHAR *sub) -{ - while (*str) - { - const WCHAR *p1 = str, *p2 = sub; - while (*p1 && *p2 && *p1 == *p2) { p1++; p2++; } - if (!*p2) return (WCHAR *)str; - str++; - } - return NULL; -} - static void test_rfc1766(IMultiLanguage2 *iML2) { IEnumRfc1766 *pEnumRfc1766; @@ -1336,7 +1323,7 @@ static void test_rfc1766(IMultiLanguage2 *iML2) /* not an exact 1:1 correspondence between lcid and rfc1766 in the * mlang database, e.g., nb-no -> 1044 -> no */ - ok(strstrW(info.wszRfc1766, rfcstr) != NULL, + ok(wcsstr(info.wszRfc1766, rfcstr) != NULL, "Expected matching locale names\n"); SysFreeString(rfcstr);