Skip to content

Commit ea76dd0

Browse files
committed
Add BSTR array marshalling.
AsByValArrayTest without that was not working.
1 parent beca115 commit ea76dd0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/coreclr/tools/Common/TypeSystem/Interop/IL/MarshalHelpers.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -791,6 +791,11 @@ private static MarshallerKind GetArrayElementMarshallerKind(
791791
return MarshallerKind.UnicodeString;
792792
case NativeTypeKind.LPUTF8Str:
793793
return MarshallerKind.UTF8String;
794+
case NativeTypeKind.BStr:
795+
case NativeTypeKind.TBStr:
796+
return MarshallerKind.BSTRString;
797+
case NativeTypeKind.AnsiBStr:
798+
return MarshallerKind.AnsiBSTRString;
794799
default:
795800
return MarshallerKind.Invalid;
796801
}

0 commit comments

Comments
 (0)