diff options
author | Jeremy Koritzinsky <jkoritzinsky@gmail.com> | 2019-01-23 10:34:54 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-23 10:34:54 -0800 |
commit | 5fb8eb38f89a099461db3b5985f281db1b7ae263 (patch) | |
tree | 3c918f13e6f4476509d2f5216d98f7ef48988dc6 /tests/src/Interop/StructMarshalling/PInvoke | |
parent | 481a99f52bf0516f589368455ab05818d23e051e (diff) | |
download | coreclr-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/StructMarshalling/PInvoke')
-rw-r--r-- | tests/src/Interop/StructMarshalling/PInvoke/MarshalStructAsParamDLL.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/src/Interop/StructMarshalling/PInvoke/MarshalStructAsParamDLL.h b/tests/src/Interop/StructMarshalling/PInvoke/MarshalStructAsParamDLL.h index 4cb49e192a..3d3bc81c0c 100644 --- a/tests/src/Interop/StructMarshalling/PInvoke/MarshalStructAsParamDLL.h +++ b/tests/src/Interop/StructMarshalling/PInvoke/MarshalStructAsParamDLL.h @@ -292,11 +292,11 @@ void ChangeCharSetUnicodeSequential(CharSetUnicodeSequential* p) #else LPCWSTR strSource = u"change string"; #endif - size_t len = wcslen(strSource); + size_t len = TP_slen(strSource); LPCWSTR temp = (LPCWSTR)CoreClrAlloc(sizeof(WCHAR)*(len+1)); if(temp != NULL) { - wcscpy_s((WCHAR*)temp, (len+1), strSource); + TP_scpy_s((WCHAR*)temp, (len+1), strSource); p->f1 = temp; p->f2 = L'n'; } |