diff options
Diffstat (limited to 'tests/src/Interop/StringMarshalling/LPSTR/LPSTRTestNative.cpp')
-rw-r--r-- | tests/src/Interop/StringMarshalling/LPSTR/LPSTRTestNative.cpp | 6 |
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; |