From 5fb8eb38f89a099461db3b5985f281db1b7ae263 Mon Sep 17 00:00:00 2001 From: Jeremy Koritzinsky Date: Wed, 23 Jan 2019 10:34:54 -0800 Subject: Don't redirect stdlib wchar functions to our test platform shims. (#22072) * Don't redirect stdlib wchar functions to our test platform shims. * Fix bad find-replaces. * Remove unused overload and last wchar shadowing. --- tests/src/Interop/StringMarshalling/LPSTR/LPSTRTestNative.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/src/Interop/StringMarshalling/LPSTR/LPSTRTestNative.cpp') diff --git a/tests/src/Interop/StringMarshalling/LPSTR/LPSTRTestNative.cpp b/tests/src/Interop/StringMarshalling/LPSTR/LPSTRTestNative.cpp index 399db99702..132927d041 100644 --- a/tests/src/Interop/StringMarshalling/LPSTR/LPSTRTestNative.cpp +++ b/tests/src/Interop/StringMarshalling/LPSTR/LPSTRTestNative.cpp @@ -131,10 +131,10 @@ extern "C" DLL_EXPORT BOOL __cdecl RPinvoke_DelMarshal_InOut(Test_DelMarshal_InO LPCWSTR str = d(s); LPCWSTR ret = W("Return"); - size_t lenstr = wcslen(str); - size_t lenret = wcslen(ret); + size_t lenstr = TP_slen(str); + size_t lenret = TP_slen(ret); - if((lenret != lenstr)||(wcsncmp(str,ret,lenstr)!=0)) + if((lenret != lenstr)||(TP_wcsncmp(str,ret,lenstr)!=0)) { printf("Error in RPinvoke_DelMarshal_InOut, Returned value didn't match\n"); return FALSE; -- cgit v1.2.3