summaryrefslogtreecommitdiff
path: root/tests/src
diff options
context:
space:
mode:
authorJeremy Koritzinsky <jkoritzinsky@gmail.com>2019-01-07 14:11:12 -0800
committerGitHub <noreply@github.com>2019-01-07 14:11:12 -0800
commitfee8d6ad6fc27073f88755dbc066d1aea8da5517 (patch)
tree164fa70e11302f58ac9b80f586a4a8e97c3731a8 /tests/src
parent101c99fdfe6c0c348fea615f6388d23a6e397fc6 (diff)
downloadcoreclr-fee8d6ad6fc27073f88755dbc066d1aea8da5517.tar.gz
coreclr-fee8d6ad6fc27073f88755dbc066d1aea8da5517.tar.bz2
coreclr-fee8d6ad6fc27073f88755dbc066d1aea8da5517.zip
Fix CharSet on StringBuilder hidden null terminator test (#21853)
Diffstat (limited to 'tests/src')
-rw-r--r--tests/src/Interop/StringMarshalling/LPTSTR/LPTSTRTestPInvokeDef.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/src/Interop/StringMarshalling/LPTSTR/LPTSTRTestPInvokeDef.cs b/tests/src/Interop/StringMarshalling/LPTSTR/LPTSTRTestPInvokeDef.cs
index d8648df2e8..88c3e74c4a 100644
--- a/tests/src/Interop/StringMarshalling/LPTSTR/LPTSTRTestPInvokeDef.cs
+++ b/tests/src/Interop/StringMarshalling/LPTSTR/LPTSTRTestPInvokeDef.cs
@@ -63,10 +63,10 @@ namespace NativeDefs
[DllImport(NativeBinaryName)]
public static extern bool ReverseP_MarshalStrB_InOut(Del_MarshalStrB_InOut d, [MarshalAs(UnmanagedType.LPTStr)]string s);
- [DllImport(NativeBinaryName)]
+ [DllImport(NativeBinaryName, CharSet = CharSet.Unicode)]
public static extern bool Verify_NullTerminators_PastEnd(StringBuilder builder, int length);
- [DllImport(NativeBinaryName, EntryPoint = "Verify_NullTerminators_PastEnd")]
+ [DllImport(NativeBinaryName, EntryPoint = "Verify_NullTerminators_PastEnd", CharSet = CharSet.Unicode)]
public static extern bool Verify_NullTerminators_PastEnd_Out([Out] StringBuilder builder, int length);
}
}