forked from Mirrors/wine-wine
mscoree/tests: Get rid of strrchrW().
Signed-off-by: Alexandre Julliard <julliard@winehq.org>feature/deterministic
parent
70644be9df
commit
32169fb39d
|
@ -74,13 +74,6 @@ static void cleanup(void)
|
||||||
FreeLibrary(hmscoree);
|
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 void test_getruntime(WCHAR *version)
|
||||||
{
|
{
|
||||||
static const WCHAR dotzero[] = {'.','0',0};
|
static const WCHAR dotzero[] = {'.','0',0};
|
||||||
|
@ -106,7 +99,7 @@ static void test_getruntime(WCHAR *version)
|
||||||
ICLRRuntimeInfo_Release(info);
|
ICLRRuntimeInfo_Release(info);
|
||||||
|
|
||||||
/* Versions must match exactly. */
|
/* Versions must match exactly. */
|
||||||
dot = strrchrW(version, '.');
|
dot = wcsrchr(version, '.');
|
||||||
lstrcpyW(dot, dotzero);
|
lstrcpyW(dot, dotzero);
|
||||||
hr = ICLRMetaHost_GetRuntime(metahost, version, &IID_ICLRRuntimeInfo, (void**)&info);
|
hr = ICLRMetaHost_GetRuntime(metahost, version, &IID_ICLRRuntimeInfo, (void**)&info);
|
||||||
ok(hr == CLR_E_SHIM_RUNTIME, "GetVersion failed, hr=%x\n", hr);
|
ok(hr == CLR_E_SHIM_RUNTIME, "GetVersion failed, hr=%x\n", hr);
|
||||||
|
|
Loading…
Reference in New Issue