Alexandre Julliard : mscoree/tests: Get rid of strrchrW().
Alexandre Julliard
julliard at winehq.org
Mon Jan 27 15:00:14 CST 2020
Module: wine
Branch: master
Commit: 32169fb39d3e09118b17965c4ea92fc4370a4a66
URL: https://source.winehq.org/git/wine.git/?a=commit;h=32169fb39d3e09118b17965c4ea92fc4370a4a66
Author: Alexandre Julliard <julliard at winehq.org>
Date: Sun Jan 26 10:56:22 2020 +0100
mscoree/tests: Get rid of strrchrW().
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/mscoree/tests/metahost.c | 9 +--------
1 file changed, 1 insertion(+), 8 deletions(-)
diff --git a/dlls/mscoree/tests/metahost.c b/dlls/mscoree/tests/metahost.c
index d3dce9e7c1..b6b0608e9d 100644
--- a/dlls/mscoree/tests/metahost.c
+++ b/dlls/mscoree/tests/metahost.c
@@ -74,13 +74,6 @@ static void cleanup(void)
FreeLibrary(hmscoree);
}
-static WCHAR *strrchrW( WCHAR *str, WCHAR ch )
-{
- WCHAR *ret = NULL;
- do { if (*str == ch) ret = str; } while (*str++);
- return ret;
-}
-
static void test_getruntime(WCHAR *version)
{
static const WCHAR dotzero[] = {'.','0',0};
@@ -106,7 +99,7 @@ static void test_getruntime(WCHAR *version)
ICLRRuntimeInfo_Release(info);
/* Versions must match exactly. */
- dot = strrchrW(version, '.');
+ dot = wcsrchr(version, '.');
lstrcpyW(dot, dotzero);
hr = ICLRMetaHost_GetRuntime(metahost, version, &IID_ICLRRuntimeInfo, (void**)&info);
ok(hr == CLR_E_SHIM_RUNTIME, "GetVersion failed, hr=%x\n", hr);
More information about the wine-cvs
mailing list