summaryrefslogtreecommitdiff
path: root/tests/src/Interop
diff options
context:
space:
mode:
authorBruce Forstall <Bruce_Forstall@msn.com>2018-11-05 18:41:16 -0800
committerBruce Forstall <Bruce_Forstall@msn.com>2018-11-05 23:12:06 -0800
commite250e6206fb7d20e436cb4d4ef0dd30da037e939 (patch)
tree7a669b40214088b2565891b7d83bd0a5fedce287 /tests/src/Interop
parent8cbbce04c80f03f90370231847865f620150f628 (diff)
downloadcoreclr-e250e6206fb7d20e436cb4d4ef0dd30da037e939.tar.gz
coreclr-e250e6206fb7d20e436cb4d4ef0dd30da037e939.tar.bz2
coreclr-e250e6206fb7d20e436cb4d4ef0dd30da037e939.zip
Fix calling convention for 3 p/invoke test cases
Diffstat (limited to 'tests/src/Interop')
-rw-r--r--tests/src/Interop/SizeConst/SizeConstTest.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/src/Interop/SizeConst/SizeConstTest.cs b/tests/src/Interop/SizeConst/SizeConstTest.cs
index bd081a6721..a4d85c898e 100644
--- a/tests/src/Interop/SizeConst/SizeConstTest.cs
+++ b/tests/src/Interop/SizeConst/SizeConstTest.cs
@@ -19,7 +19,7 @@ class Test
internal const int ARRAY_SIZE = 100;
//UnmanagedType.ByValTStr
- [DllImport("SizeConstNative",CharSet = CharSet.Ansi)]
+ [DllImport("SizeConstNative",CharSet = CharSet.Ansi, CallingConvention = CallingConvention.Cdecl)]
static extern bool TakeByValTStr(S_CHARArray_ByValTStr s, int size);
static bool SizeConstByValTStr()