summaryrefslogtreecommitdiff
path: root/tests/src/Interop/StringMarshalling/LPSTR/LPSTRTestNative.cpp
diff options
context:
space:
mode:
authorJeremy Koritzinsky <jkoritzinsky@gmail.com>2019-01-23 10:34:54 -0800
committerGitHub <noreply@github.com>2019-01-23 10:34:54 -0800
commit5fb8eb38f89a099461db3b5985f281db1b7ae263 (patch)
tree3c918f13e6f4476509d2f5216d98f7ef48988dc6 /tests/src/Interop/StringMarshalling/LPSTR/LPSTRTestNative.cpp
parent481a99f52bf0516f589368455ab05818d23e051e (diff)
downloadcoreclr-5fb8eb38f89a099461db3b5985f281db1b7ae263.tar.gz
coreclr-5fb8eb38f89a099461db3b5985f281db1b7ae263.tar.bz2
coreclr-5fb8eb38f89a099461db3b5985f281db1b7ae263.zip
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.
Diffstat (limited to 'tests/src/Interop/StringMarshalling/LPSTR/LPSTRTestNative.cpp')
-rw-r--r--tests/src/Interop/StringMarshalling/LPSTR/LPSTRTestNative.cpp6
1 files changed, 3 insertions, 3 deletions
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;